var Oc=e=>{throw TypeError(e)};var yl=(e,t,n)=>t.has(e)||Oc("Cannot "+n);var N=(e,t,n)=>(yl(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?Oc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(yl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Te=(e,t,n)=>(yl(e,t,"access private method"),n);var yi=(e,t,n,r)=>({set _(o){B(e,t,o,n)},get _(){return N(e,t,r)}});function hv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function If(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Df={exports:{}},Ls={},zf={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var li=Symbol.for("react.element"),gv=Symbol.for("react.portal"),vv=Symbol.for("react.fragment"),yv=Symbol.for("react.strict_mode"),xv=Symbol.for("react.profiler"),wv=Symbol.for("react.provider"),Cv=Symbol.for("react.context"),Sv=Symbol.for("react.forward_ref"),Ev=Symbol.for("react.suspense"),bv=Symbol.for("react.memo"),kv=Symbol.for("react.lazy"),Mc=Symbol.iterator;function Nv(e){return e===null||typeof e!="object"?null:(e=Mc&&e[Mc]||e["@@iterator"],typeof e=="function"?e:null)}var Ff={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$f=Object.assign,Uf={};function oo(e,t,n){this.props=e,this.context=t,this.refs=Uf,this.updater=n||Ff}oo.prototype.isReactComponent={};oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bf(){}Bf.prototype=oo.prototype;function lu(e,t,n){this.props=e,this.context=t,this.refs=Uf,this.updater=n||Ff}var au=lu.prototype=new Bf;au.constructor=lu;$f(au,oo.prototype);au.isPureReactComponent=!0;var Lc=Array.isArray,Vf=Object.prototype.hasOwnProperty,uu={current:null},Hf={key:!0,ref:!0,__self:!0,__source:!0};function Wf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Vf.call(t,r)&&!Hf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,z=P[H];if(0>>1;Ho(he,L))Peo(J,he)?(P[H]=J,P[Pe]=L,H=Pe):(P[H]=he,P[q]=L,H=q);else if(Peo(J,L))P[H]=J,P[Pe]=L,H=Pe;else break e}}return T}function o(P,T){var L=P.sortIndex-T.sortIndex;return L!==0?L:P.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,h=3,d=!1,C=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=P)r(u),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(u)}}function S(P){if(y=!1,v(P),!C)if(n(a)!==null)C=!0,$(E);else{var T=n(u);T!==null&&V(S,T.startTime-P)}}function E(P,T){C=!1,y&&(y=!1,g(R),R=-1),d=!0;var L=h;try{for(v(T),f=n(a);f!==null&&(!(f.expirationTime>T)||P&&!F());){var H=f.callback;if(typeof H=="function"){f.callback=null,h=f.priorityLevel;var z=H(f.expirationTime<=T);T=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(a)&&r(a),v(T)}else r(a);f=n(a)}if(f!==null)var K=!0;else{var q=n(u);q!==null&&V(S,q.startTime-T),K=!1}return K}finally{f=null,h=L,d=!1}}var b=!1,k=null,R=-1,O=5,_=-1;function F(){return!(e.unstable_now()-_P||125H?(P.sortIndex=L,t(u,P),n(a)===null&&P===n(u)&&(y?(g(R),R=-1):y=!0,V(S,L-H))):(P.sortIndex=z,t(a,P),C||d||(C=!0,$(E))),P},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(P){var T=h;return function(){var L=h;h=T;try{return P.apply(this,arguments)}finally{h=L}}}})(qf);Yf.exports=qf;var Dv=Yf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zv=x,Ze=Dv;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zl=Object.prototype.hasOwnProperty,Fv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dc={},zc={};function $v(e){return Zl.call(zc,e)?!0:Zl.call(Dc,e)?!1:Fv.test(e)?zc[e]=!0:(Dc[e]=!0,!1)}function Uv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bv(e,t,n,r){if(t===null||typeof t>"u"||Uv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ne[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var fu=/[\-:]([a-z])/g;function pu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fu,pu);Ne[t]=new Fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fu,pu);Ne[t]=new Fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fu,pu);Ne[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function mu(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Cl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bo(e):""}function Vv(e){switch(e.tag){case 5:return bo(e.type);case 16:return bo("Lazy");case 13:return bo("Suspense");case 19:return bo("SuspenseList");case 0:case 2:case 15:return e=Sl(e.type,!1),e;case 11:return e=Sl(e.type.render,!1),e;case 1:return e=Sl(e.type,!0),e;default:return""}}function na(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wr:return"Fragment";case xr:return"Portal";case Jl:return"Profiler";case hu:return"StrictMode";case ea:return"Suspense";case ta:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jf:return(e.displayName||"Context")+".Consumer";case Zf:return(e._context.displayName||"Context")+".Provider";case gu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vu:return t=e.displayName||null,t!==null?t:na(e.type)||"Memo";case fn:t=e._payload,e=e._init;try{return na(e(t))}catch{}}return null}function Hv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return na(t);case 8:return t===hu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wv(e){var t=tp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ci(e){e._valueTracker||(e._valueTracker=Wv(e))}function np(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ns(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ra(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $c(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rp(e,t){t=t.checked,t!=null&&mu(e,"checked",t,!1)}function oa(e,t){rp(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ia(e,t.type,n):t.hasOwnProperty("defaultValue")&&ia(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ia(e,t,n){(t!=="number"||ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ko=Array.isArray;function Ar(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var To={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qv=["Webkit","ms","Moz","O"];Object.keys(To).forEach(function(e){Qv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),To[t]=To[e]})});function lp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||To.hasOwnProperty(e)&&To[e]?(""+t).trim():t+"px"}function ap(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Kv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function aa(e,t){if(t){if(Kv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function ua(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ca=null;function yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var da=null,_r=null,Or=null;function Hc(e){if(e=ci(e)){if(typeof da!="function")throw Error(A(280));var t=e.stateNode;t&&(t=$s(t),da(e.stateNode,e.type,t))}}function up(e){_r?Or?Or.push(e):Or=[e]:_r=e}function cp(){if(_r){var e=_r,t=Or;if(Or=_r=null,Hc(e),t)for(e=0;e>>=0,e===0?32:31-(oy(e)/iy|0)|0}var Ei=64,bi=4194304;function No(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ss(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=No(l):(i&=s,i!==0&&(r=No(i)))}else s=n&~o,s!==0?r=No(s):i!==0&&(r=No(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ai(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function uy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=jo),Jc=" ",ed=!1;function jp(e,t){switch(e){case"keyup":return Dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ap(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cr=!1;function Fy(e,t){switch(e){case"compositionend":return Ap(t);case"keypress":return t.which!==32?null:(ed=!0,Jc);case"textInput":return e=t.data,e===Jc&&ed?null:e;default:return null}}function $y(e,t){if(Cr)return e==="compositionend"||!Nu&&jp(e,t)?(e=Tp(),Hi=Eu=Cn=null,Cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=od(n)}}function Lp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ip(){for(var e=window,t=ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ns(e.document)}return t}function Pu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yy(e){var t=Ip(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lp(n.ownerDocument.documentElement,n)){if(r!==null&&Pu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=id(n,i);var s=id(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sr=null,va=null,_o=null,ya=!1;function sd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ya||Sr==null||Sr!==ns(r)||(r=Sr,"selectionStart"in r&&Pu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_o&&Wo(_o,r)||(_o=r,r=us(va,"onSelect"),0kr||(e.current=ba[kr],ba[kr]=null,kr--)}function ne(e,t){kr++,ba[kr]=e.current,e.current=t}var On={},Oe=zn(On),Ve=zn(!1),nr=On;function Yr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function He(e){return e=e.childContextTypes,e!=null}function ds(){ie(Ve),ie(Oe)}function pd(e,t,n){if(Oe.current!==On)throw Error(A(168));ne(Oe,t),ne(Ve,n)}function Wp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,Hv(e)||"Unknown",o));return ce({},n,r)}function fs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,nr=Oe.current,ne(Oe,e),ne(Ve,Ve.current),!0}function md(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Wp(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,ie(Ve),ie(Oe),ne(Oe,e)):ie(Ve),ne(Ve,n)}var Vt=null,Us=!1,Il=!1;function Qp(e){Vt===null?Vt=[e]:Vt.push(e)}function l0(e){Us=!0,Qp(e)}function Fn(){if(!Il&&Vt!==null){Il=!0;var e=0,t=ee;try{var n=Vt;for(ee=1;e>=s,o-=s,Wt=1<<32-Ct(t)+o|n<R?(O=k,k=null):O=k.sibling;var _=h(g,k,v[R],S);if(_===null){k===null&&(k=O);break}e&&k&&_.alternate===null&&t(g,k),p=i(_,p,R),b===null?E=_:b.sibling=_,b=_,k=O}if(R===v.length)return n(g,k),le&&Vn(g,R),E;if(k===null){for(;RR?(O=k,k=null):O=k.sibling;var F=h(g,k,_.value,S);if(F===null){k===null&&(k=O);break}e&&k&&F.alternate===null&&t(g,k),p=i(F,p,R),b===null?E=F:b.sibling=F,b=F,k=O}if(_.done)return n(g,k),le&&Vn(g,R),E;if(k===null){for(;!_.done;R++,_=v.next())_=f(g,_.value,S),_!==null&&(p=i(_,p,R),b===null?E=_:b.sibling=_,b=_);return le&&Vn(g,R),E}for(k=r(g,k);!_.done;R++,_=v.next())_=d(k,g,R,_.value,S),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?R:_.key),p=i(_,p,R),b===null?E=_:b.sibling=_,b=_);return e&&k.forEach(function(D){return t(g,D)}),le&&Vn(g,R),E}function w(g,p,v,S){if(typeof v=="object"&&v!==null&&v.type===wr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case wi:e:{for(var E=v.key,b=p;b!==null;){if(b.key===E){if(E=v.type,E===wr){if(b.tag===7){n(g,b.sibling),p=o(b,v.props.children),p.return=g,g=p;break e}}else if(b.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===fn&&vd(E)===b.type){n(g,b.sibling),p=o(b,v.props),p.ref=xo(g,b,v),p.return=g,g=p;break e}n(g,b);break}else t(g,b);b=b.sibling}v.type===wr?(p=tr(v.props.children,g.mode,S,v.key),p.return=g,g=p):(S=Zi(v.type,v.key,v.props,null,g.mode,S),S.ref=xo(g,p,v),S.return=g,g=S)}return s(g);case xr:e:{for(b=v.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(g,p.sibling),p=o(p,v.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Hl(v,g.mode,S),p.return=g,g=p}return s(g);case fn:return b=v._init,w(g,p,b(v._payload),S)}if(ko(v))return C(g,p,v,S);if(mo(v))return y(g,p,v,S);Ai(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,v),p.return=g,g=p):(n(g,p),p=Vl(v,g.mode,S),p.return=g,g=p),s(g)):n(g,p)}return w}var Xr=qp(!0),Xp=qp(!1),hs=zn(null),gs=null,Tr=null,Au=null;function _u(){Au=Tr=gs=null}function Ou(e){var t=hs.current;ie(hs),e._currentValue=t}function Pa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lr(e,t){gs=e,Au=Tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function at(e){var t=e._currentValue;if(Au!==e)if(e={context:e,memoizedValue:t,next:null},Tr===null){if(gs===null)throw Error(A(308));Tr=e,gs.dependencies={lanes:0,firstContext:e}}else Tr=Tr.next=e;return t}var Qn=null;function Mu(e){Qn===null?Qn=[e]:Qn.push(e)}function Zp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mu(t)):(n.next=o.next,o.next=n),t.interleaved=n,qt(e,r)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pn=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,qt(e,n)}return o=r.interleaved,o===null?(t.next=t,Mu(r)):(t.next=o.next,o.next=t),r.interleaved=t,qt(e,n)}function Qi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}function yd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vs(e,t,n,r){var o=e.updateQueue;pn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,c=u=a=null,l=i;do{var h=l.lane,d=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:d,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var C=e,y=l;switch(h=t,d=n,y.tag){case 1:if(C=y.payload,typeof C=="function"){f=C.call(d,f,h);break e}f=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=y.payload,h=typeof C=="function"?C.call(d,f,h):C,h==null)break e;f=ce({},f,h);break e;case 2:pn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else d={eventTime:d,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=d,a=f):c=c.next=d,s|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ir|=s,e.lanes=s,e.memoizedState=f}}function xd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),t()}finally{ee=n,zl.transition=r}}function gm(){return ut().memoizedState}function d0(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vm(e))ym(t,n);else if(n=Zp(e,t,n,r),n!==null){var o=De();St(n,e,r,o),xm(n,t,r)}}function f0(e,t,n){var r=jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vm(e))ym(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Et(l,s)){var a=t.interleaved;a===null?(o.next=o,Mu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Zp(e,t,o,r),n!==null&&(o=De(),St(n,e,r,o),xm(n,t,r))}}function vm(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function ym(e,t){Oo=xs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}var ws={readContext:at,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},p0={readContext:at,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Cd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gi(4194308,4,dm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gi(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=d0.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:wd,useDebugValue:Vu,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=wd(!1),t=e[0];return e=c0.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Tt();if(le){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Se===null)throw Error(A(349));or&30||rm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Cd(im.bind(null,r,i,e),[e]),r.flags|=2048,Jo(9,om.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Se.identifierPrefix;if(le){var n=Qt,r=Wt;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[_t]=t,e[Go]=r,Rm(e,t,!1,!1),t.stateNode=e;e:{switch(s=ua(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oeo&&(t.flags|=128,r=!0,wo(i,!1),t.lanes=4194304)}else{if(!r)if(e=ys(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return je(t),null}else 2*pe()-i.renderingStartTime>eo&&n!==1073741824&&(t.flags|=128,r=!0,wo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Yu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function C0(e,t){switch(Ru(t),t.tag){case 1:return He(t.type)&&ds(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zr(),ie(Ve),ie(Oe),zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Du(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Zr(),null;case 10:return Ou(t.type._context),null;case 22:case 23:return Yu(),null;case 24:return null;default:return null}}var Oi=!1,_e=!1,S0=typeof WeakSet=="function"?WeakSet:Set,I=null;function Rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Ia(e,t,n){try{n()}catch(r){fe(e,t,r)}}var _d=!1;function E0(e,t){if(xa=ls,e=Ip(),Pu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var d;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++c===r&&(a=s),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(wa={focusedElem:e,selectionRange:n},ls=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var y=C.memoizedProps,w=C.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:ht(t.type,y),w);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){fe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return C=_d,_d=!1,C}function Mo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ia(t,n,i)}o=o.next}while(o!==r)}}function Hs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Da(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _m(e){var t=e.alternate;t!==null&&(e.alternate=null,_m(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Go],delete t[Ea],delete t[i0],delete t[s0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Om(e){return e.tag===5||e.tag===3||e.tag===4}function Od(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cs));else if(r!==4&&(e=e.child,e!==null))for(za(e,t,n),e=e.sibling;e!==null;)za(e,t,n),e=e.sibling}function Fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fa(e,t,n),e=e.sibling;e!==null;)Fa(e,t,n),e=e.sibling}var be=null,xt=!1;function an(e,t,n){for(n=n.child;n!==null;)Mm(e,t,n),n=n.sibling}function Mm(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Is,n)}catch{}switch(n.tag){case 5:_e||Rr(n,t);case 6:var r=be,o=xt;be=null,an(e,t,n),be=r,xt=o,be!==null&&(xt?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(xt?(e=be,n=n.stateNode,e.nodeType===8?Ll(e.parentNode,n):e.nodeType===1&&Ll(e,n),Vo(e)):Ll(be,n.stateNode));break;case 4:r=be,o=xt,be=n.stateNode.containerInfo,xt=!0,an(e,t,n),be=r,xt=o;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ia(n,t,s),o=o.next}while(o!==r)}an(e,t,n);break;case 1:if(!_e&&(Rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,an(e,t,n),_e=r):an(e,t,n);break;default:an(e,t,n)}}function Md(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new S0),t.forEach(function(r){var o=_0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*k0(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,Es=0,X&6)throw Error(A(331));var o=X;for(X|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-Ku?er(e,0):Qu|=n),We(e,t)}function Bm(e,t){t===0&&(e.mode&1?(t=bi,bi<<=1,!(bi&130023424)&&(bi=4194304)):t=1);var n=De();e=qt(e,t),e!==null&&(ai(e,t,n),We(e,n))}function A0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bm(e,n)}function _0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Bm(e,n)}var Vm;Vm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,x0(e,t,n);Be=!!(e.flags&131072)}else Be=!1,le&&t.flags&1048576&&Kp(t,ms,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yi(e,t),e=t.pendingProps;var o=Yr(t,Oe.current);Lr(t,n),o=$u(null,t,r,e,o,n);var i=Uu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(r)?(i=!0,fs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lu(t),o.updater=Vs,t.stateNode=o,o._reactInternals=t,Ra(t,r,e,n),t=_a(null,t,r,!0,i,n)):(t.tag=0,le&&i&&Tu(t),Le(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=M0(r),e=ht(r,e),o){case 0:t=Aa(null,t,r,e,n);break e;case 1:t=Rd(null,t,r,e,n);break e;case 11:t=Pd(null,t,r,e,n);break e;case 14:t=Td(null,t,r,ht(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Aa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Rd(e,t,r,o,n);case 3:e:{if(Nm(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Jp(e,t),vs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Jr(Error(A(423)),t),t=jd(e,t,r,n,o);break e}else if(r!==o){o=Jr(Error(A(424)),t),t=jd(e,t,r,n,o);break e}else for(Ye=Pn(t.stateNode.containerInfo.firstChild),qe=t,le=!0,wt=null,n=Xp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qr(),r===o){t=Xt(e,t,n);break e}Le(e,t,r,n)}t=t.child}return t;case 5:return em(t),e===null&&Na(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ca(r,o)?s=null:i!==null&&Ca(r,i)&&(t.flags|=32),km(e,t),Le(e,t,s,n),t.child;case 6:return e===null&&Na(t),null;case 13:return Pm(e,t,n);case 4:return Iu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):Le(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Pd(e,t,r,o,n);case 7:return Le(e,t,t.pendingProps,n),t.child;case 8:return Le(e,t,t.pendingProps.children,n),t.child;case 12:return Le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(hs,r._currentValue),r._currentValue=s,i!==null)if(Et(i.value,s)){if(i.children===o.children&&!Ve.current){t=Xt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Kt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Pa(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Pa(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Le(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lr(t,n),o=at(o),r=r(o),t.flags|=1,Le(e,t,r,n),t.child;case 14:return r=t.type,o=ht(r,t.pendingProps),o=ht(r.type,o),Td(e,t,r,o,n);case 15:return Em(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Yi(e,t),t.tag=1,He(r)?(e=!0,fs(t)):e=!1,Lr(t,n),wm(t,r,o),Ra(t,r,o,n),_a(null,t,r,!0,e,n);case 19:return Tm(e,t,n);case 22:return bm(e,t,n)}throw Error(A(156,t.tag))};function Hm(e,t){return vp(e,t)}function O0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new O0(e,t,n,r)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M0(e){if(typeof e=="function")return Xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gu)return 11;if(e===vu)return 14}return 2}function An(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Xu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wr:return tr(n.children,o,i,t);case hu:s=8,o|=8;break;case Jl:return e=st(12,n,t,o|2),e.elementType=Jl,e.lanes=i,e;case ea:return e=st(13,n,t,o),e.elementType=ea,e.lanes=i,e;case ta:return e=st(19,n,t,o),e.elementType=ta,e.lanes=i,e;case ep:return Qs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zf:s=10;break e;case Jf:s=9;break e;case gu:s=11;break e;case vu:s=14;break e;case fn:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=st(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function tr(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Qs(e,t,n,r){return e=st(22,e,r,t),e.elementType=ep,e.lanes=n,e.stateNode={isHidden:!1},e}function Vl(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Hl(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function L0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bl(0),this.expirationTimes=bl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zu(e,t,n,r,o,i,s,l,a){return e=new L0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=st(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lu(i),e}function I0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gm)}catch(e){console.error(e)}}Gm(),Gf.exports=et;var fi=Gf.exports;const Ym=If(fi);var qm,Bd=fi;qm=Bd.createRoot,Bd.hydrateRoot;const U0=1,B0=1e6;let Wl=0;function V0(){return Wl=(Wl+1)%Number.MAX_SAFE_INTEGER,Wl.toString()}const Ql=new Map,Vd=e=>{if(Ql.has(e))return;const t=setTimeout(()=>{Ql.delete(e),Do({type:"REMOVE_TOAST",toastId:e})},B0);Ql.set(e,t)},H0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,U0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Vd(n):e.toasts.forEach(r=>{Vd(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ji=[];let es={toasts:[]};function Do(e){es=H0(es,e),Ji.forEach(t=>{t(es)})}function W0({...e}){const t=V0(),n=o=>Do({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Do({type:"DISMISS_TOAST",toastId:t});return Do({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Q0(){const[e,t]=x.useState(es);return x.useEffect(()=>(Ji.push(t),()=>{const n=Ji.indexOf(t);n>-1&&Ji.splice(n,1)}),[e]),{...e,toast:W0,dismiss:n=>Do({type:"DISMISS_TOAST",toastId:n})}}function me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Hd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xm(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Hd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var g;const{scope:h,children:d,...C}=f,y=((g=h==null?void 0:h[e])==null?void 0:g[a])||l,w=x.useMemo(()=>C,Object.values(C));return m.jsx(y.Provider,{value:w,children:d})};u.displayName=i+"Provider";function c(f,h){var y;const d=((y=h==null?void 0:h[e])==null?void 0:y[a])||l,C=x.useContext(d);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>x.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,K0(o,...t)]}function K0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ns(e){const t=Y0(e),n=x.forwardRef((r,o)=>{const{children:i,...s}=r,l=x.Children.toArray(i),a=l.find(X0);if(a){const u=a.props.children,c=l.map(f=>f===a?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...s,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return m.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var G0=Ns("Slot");function Y0(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const s=J0(o),l=Z0(i,o.props);return o.type!==x.Fragment&&(l.ref=r?Xm(r,s):s),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zm=Symbol("radix.slottable");function q0(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Zm,t}function X0(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zm}function Z0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function J0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Jm(e){const t=e+"CollectionProvider",[n,r]=lo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:w,children:g}=y,p=j.useRef(null),v=j.useRef(new Map).current;return m.jsx(o,{scope:w,itemMap:v,collectionRef:p,children:g})};s.displayName=t;const l=e+"CollectionSlot",a=Ns(l),u=j.forwardRef((y,w)=>{const{scope:g,children:p}=y,v=i(l,g),S=Je(w,v.collectionRef);return m.jsx(a,{ref:S,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=Ns(c),d=j.forwardRef((y,w)=>{const{scope:g,children:p,...v}=y,S=j.useRef(null),E=Je(w,S),b=i(c,g);return j.useEffect(()=>(b.itemMap.set(S,{ref:S,...v}),()=>void b.itemMap.delete(S))),m.jsx(h,{[f]:"",ref:E,children:p})});d.displayName=c;function C(y){const w=i(e+"CollectionConsumer",y);return j.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((b,k)=>v.indexOf(b.ref.current)-v.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:d},C,r]}var ex=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ve=ex.reduce((e,t)=>{const n=Ns(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function eh(e,t){e&&fi.flushSync(()=>e.dispatchEvent(t))}function Mn(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function tx(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var nx="DismissableLayer",Ha="dismissableLayer.update",rx="dismissableLayer.pointerDownOutside",ox="dismissableLayer.focusOutside",Wd,th=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nc=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=x.useContext(th),[c,f]=x.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=x.useState({}),C=Je(t,k=>f(k)),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(w),p=c?y.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=g,E=sx(k=>{const R=k.target,O=[...u.branches].some(_=>_.contains(R));!S||O||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},h),b=lx(k=>{const R=k.target;[...u.branches].some(_=>_.contains(R))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},h);return tx(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},h),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Qd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Wd)}},[c,h,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Qd())},[c,u]),x.useEffect(()=>{const k=()=>d({});return document.addEventListener(Ha,k),()=>document.removeEventListener(Ha,k)},[]),m.jsx(ve.div,{...a,ref:C,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,b.onFocusCapture),onBlurCapture:me(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,E.onPointerDownCapture)})});nc.displayName=nx;var ix="DismissableLayerBranch",nh=x.forwardRef((e,t)=>{const n=x.useContext(th),r=x.useRef(null),o=Je(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),m.jsx(ve.div,{...e,ref:o})});nh.displayName=ix;function sx(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){rh(rx,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lx(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e),r=x.useRef(!1);return x.useEffect(()=>{const o=i=>{i.target&&!r.current&&rh(ox,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Qd(){const e=new CustomEvent(Ha);document.dispatchEvent(e)}function rh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?eh(o,i):o.dispatchEvent(i)}var ax=nc,ux=nh,Dt=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},cx="Portal",oh=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=x.useState(!1);Dt(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Ym.createPortal(m.jsx(ve.div,{...r,ref:t}),s):null});oh.displayName=cx;function dx(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Xs=e=>{const{present:t,children:n}=e,r=fx(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Je(r.ref,px(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};Xs.displayName="Presence";function fx(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),s=e?"mounted":"unmounted",[l,a]=dx(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Ii(r.current);i.current=l==="mounted"?u:"none"},[l]),Dt(()=>{const u=r.current,c=o.current;if(c!==e){const h=i.current,d=Ii(u);e?a("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&h!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Dt(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=d=>{const y=Ii(r.current).includes(d.animationName);if(d.target===t&&y&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=d=>{d.target===t&&(i.current=Ii(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ii(e){return(e==null?void 0:e.animationName)||"none"}function px(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mx=du[" useInsertionEffect ".trim().toString()]||Dt;function Zs({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=hx({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=x.useRef(e!==void 0);x.useEffect(()=>{const f=c.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,r])}const u=x.useCallback(c=>{var f;if(l){const h=gx(c)?c(e):c;h!==e&&((f=s.current)==null||f.call(s,h))}else i(c)},[l,e,i,s]);return[a,u]}function hx({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return mx(()=>{i.current=t},[t]),x.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function gx(e){return typeof e=="function"}var vx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yx="VisuallyHidden",Js=x.forwardRef((e,t)=>m.jsx(ve.span,{...e,ref:t,style:{...vx,...e.style}}));Js.displayName=yx;var xx=Js,rc="ToastProvider",[oc,wx,Cx]=Jm("Toast"),[ih,rb]=lo("Toast",[Cx]),[Sx,el]=ih(rc),sh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=x.useState(null),[u,c]=x.useState(0),f=x.useRef(!1),h=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${rc}\`. Expected non-empty \`string\`.`),m.jsx(oc.Provider,{scope:t,children:m.jsx(Sx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>c(d=>d+1),[]),onToastRemove:x.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:s})})};sh.displayName=rc;var lh="ToastViewport",Ex=["F8"],Wa="toast.viewportPause",Qa="toast.viewportResume",ah=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Ex,label:o="Notifications ({hotkey})",...i}=e,s=el(lh,n),l=wx(n),a=x.useRef(null),u=x.useRef(null),c=x.useRef(null),f=x.useRef(null),h=Je(t,f,s.onViewportChange),d=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=s.toastCount>0;x.useEffect(()=>{const w=g=>{var v;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=a.current,g=f.current;if(C&&w&&g){const p=()=>{if(!s.isClosePausedRef.current){const b=new CustomEvent(Wa);g.dispatchEvent(b),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const b=new CustomEvent(Qa);g.dispatchEvent(b),s.isClosePausedRef.current=!1}},S=b=>{!w.contains(b.relatedTarget)&&v()},E=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",p),w.addEventListener("focusout",S),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[C,s.isClosePausedRef]);const y=x.useCallback(({tabbingDirection:w})=>{const p=l().map(v=>{const S=v.ref.current,E=[S,...Ix(S)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?p.reverse():p).flat()},[l]);return x.useEffect(()=>{const w=f.current;if(w){const g=p=>{var E,b,k;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const R=document.activeElement,O=p.shiftKey;if(p.target===w&&O){(E=u.current)==null||E.focus();return}const D=y({tabbingDirection:O?"backwards":"forwards"}),Q=D.findIndex(M=>M===R);Kl(D.slice(Q+1))?p.preventDefault():O?(b=u.current)==null||b.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[l,y]),m.jsxs(ux,{ref:a,role:"region","aria-label":o.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&m.jsx(Ka,{ref:u,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});Kl(w)}}),m.jsx(oc.Slot,{scope:n,children:m.jsx(ve.ol,{tabIndex:-1,...i,ref:h})}),C&&m.jsx(Ka,{ref:c,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});Kl(w)}})]})});ah.displayName=lh;var uh="ToastFocusProxy",Ka=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=el(uh,n);return m.jsx(Js,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Ka.displayName=uh;var pi="Toast",bx="toast.swipeStart",kx="toast.swipeMove",Nx="toast.swipeCancel",Px="toast.swipeEnd",ch=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=Zs({prop:r,defaultProp:o??!0,onChange:i,caller:pi});return m.jsx(Xs,{present:n||l,children:m.jsx(jx,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:Mn(e.onPause),onResume:Mn(e.onResume),onSwipeStart:me(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:me(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:me(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:me(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),a(!1)})})})});ch.displayName=pi;var[Tx,Rx]=ih(pi,{onClose(){}}),jx=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:d,...C}=e,y=el(pi,n),[w,g]=x.useState(null),p=Je(t,M=>g(M)),v=x.useRef(null),S=x.useRef(null),E=o||y.duration,b=x.useRef(0),k=x.useRef(E),R=x.useRef(0),{onToastAdd:O,onToastRemove:_}=y,F=Mn(()=>{var Y;(w==null?void 0:w.contains(document.activeElement))&&((Y=y.viewport)==null||Y.focus()),s()}),D=x.useCallback(M=>{!M||M===1/0||(window.clearTimeout(R.current),b.current=new Date().getTime(),R.current=window.setTimeout(F,M))},[F]);x.useEffect(()=>{const M=y.viewport;if(M){const Y=()=>{D(k.current),u==null||u()},$=()=>{const V=new Date().getTime()-b.current;k.current=k.current-V,window.clearTimeout(R.current),a==null||a()};return M.addEventListener(Wa,$),M.addEventListener(Qa,Y),()=>{M.removeEventListener(Wa,$),M.removeEventListener(Qa,Y)}}},[y.viewport,E,a,u,D]),x.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(E)},[i,E,y.isClosePausedRef,D]),x.useEffect(()=>(O(),()=>_()),[O,_]);const Q=x.useMemo(()=>w?vh(w):null,[w]);return y.viewport?m.jsxs(m.Fragment,{children:[Q&&m.jsx(Ax,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),m.jsx(Tx,{scope:n,onClose:F,children:fi.createPortal(m.jsx(oc.ItemSlot,{scope:n,children:m.jsx(ax,{asChild:!0,onEscapeKeyDown:me(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||F(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:m.jsx(ve.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...C,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:me(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:me(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:me(e.onPointerMove,M=>{if(!v.current)return;const Y=M.clientX-v.current.x,$=M.clientY-v.current.y,V=!!S.current,P=["left","right"].includes(y.swipeDirection),T=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=P?T(0,Y):0,H=P?0:T(0,$),z=M.pointerType==="touch"?10:2,K={x:L,y:H},q={originalEvent:M,delta:K};V?(S.current=K,Di(kx,f,q,{discrete:!1})):Kd(K,y.swipeDirection,z)?(S.current=K,Di(bx,c,q,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Y)>z||Math.abs($)>z)&&(v.current=null)}),onPointerUp:me(e.onPointerUp,M=>{const Y=S.current,$=M.target;if($.hasPointerCapture(M.pointerId)&&$.releasePointerCapture(M.pointerId),S.current=null,v.current=null,Y){const V=M.currentTarget,P={originalEvent:M,delta:Y};Kd(Y,y.swipeDirection,y.swipeThreshold)?Di(Px,d,P,{discrete:!0}):Di(Nx,h,P,{discrete:!0}),V.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),Ax=e=>{const{__scopeToast:t,children:n,...r}=e,o=el(pi,t),[i,s]=x.useState(!1),[l,a]=x.useState(!1);return Mx(()=>s(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:m.jsx(oh,{asChild:!0,children:m.jsx(Js,{...r,children:i&&m.jsxs(m.Fragment,{children:[o.label," ",n]})})})},_x="ToastTitle",dh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return m.jsx(ve.div,{...r,ref:t})});dh.displayName=_x;var Ox="ToastDescription",fh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return m.jsx(ve.div,{...r,ref:t})});fh.displayName=Ox;var ph="ToastAction",mh=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?m.jsx(gh,{altText:n,asChild:!0,children:m.jsx(ic,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ph}\`. Expected non-empty \`string\`.`),null)});mh.displayName=ph;var hh="ToastClose",ic=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Rx(hh,n);return m.jsx(gh,{asChild:!0,children:m.jsx(ve.button,{type:"button",...r,ref:t,onClick:me(e.onClick,o.onClose)})})});ic.displayName=hh;var gh=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return m.jsx(ve.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function vh(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Lx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...vh(r))}}),t}function Di(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?eh(o,i):o.dispatchEvent(i)}var Kd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Mx(e=()=>{}){const t=Mn(e);Dt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Lx(e){return e.nodeType===e.ELEMENT_NODE}function Ix(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Dx=sh,yh=ah,xh=ch,wh=dh,Ch=fh,Sh=mh,Eh=ic;function bh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Yd=kh,sc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Yd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=i==null?void 0:i[u];if(c===null)return null;const h=Gd(c)||Gd(f);return o[u][h]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,h]=c;return h===void 0||(u[f]=h),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:h,...d}=c;return Object.entries(d).every(C=>{let[y,w]=C;return Array.isArray(w)?w.includes({...i,...l}[y]):{...i,...l}[y]===w})?[...u,f,h]:u},[]);return Yd(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nh=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Fx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $x=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>x.createElement("svg",{ref:a,...Fx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Nh("lucide",o),...l},[...s.map(([u,c])=>x.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ee=(e,t)=>{const n=x.forwardRef(({className:r,...o},i)=>x.createElement($x,{ref:i,iconNode:t,className:Nh(`lucide-${zx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lc=Ee("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ph=Ee("Atom",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ux=Ee("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bx=Ee("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vx=Ee("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hx=Ee("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wx=Ee("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qx=Ee("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kx=Ee("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gx=Ee("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yx=Ee("MousePointer",[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qx=Ee("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xx=Ee("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zx=Ee("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Th=Ee("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jx=Ee("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const e1=Ee("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const t1=Ee("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),ac="-",n1=e=>{const t=o1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(ac);return l[0]===""&&l.length!==1&&l.shift(),Rh(l,t)||r1(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Rh=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(ac);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},qd=/^\[(.+)\]$/,r1=e=>{if(qd.test(e)){const t=qd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},o1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return s1(Object.entries(e.classGroups),n).forEach(([i,s])=>{Ga(s,r,i,t)}),r},Ga=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Xd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(i1(o)){Ga(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Ga(s,Xd(t,i),n,r)})})},Xd=(e,t)=>{let n=e;return t.split(ac).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},i1=e=>e.isThemeGetter,s1=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,l1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},jh="!",a1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,f;for(let w=0;wc?f-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:C,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:s}):s},u1=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},c1=e=>({cache:l1(e.cacheSize),parseClassName:a1(e),...n1(e)}),d1=/\s+/,f1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(d1);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=n(u);let C=!!d,y=r(C?h.substring(0,d):h);if(!y){if(!C){l=u+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=u+(l.length>0?" "+l:l);continue}C=!1}const w=u1(c).join(":"),g=f?w+jh:w,p=g+y;if(i.includes(p))continue;i.push(p);const v=o(y,C);for(let S=0;S0?" "+l:l)}return l};function p1(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=c1(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=f1(a,n);return o(a,c),c}return function(){return i(p1.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},_h=/^\[(?:([a-z-]+):)?(.+)\]$/i,h1=/^\d+\/\d+$/,g1=new Set(["px","full","screen"]),v1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,x1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,w1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,C1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$t=e=>Dr(e)||g1.has(e)||h1.test(e),un=e=>ao(e,"length",R1),Dr=e=>!!e&&!Number.isNaN(Number(e)),Gl=e=>ao(e,"number",Dr),So=e=>!!e&&Number.isInteger(Number(e)),S1=e=>e.endsWith("%")&&Dr(e.slice(0,-1)),W=e=>_h.test(e),cn=e=>v1.test(e),E1=new Set(["length","size","percentage"]),b1=e=>ao(e,E1,Oh),k1=e=>ao(e,"position",Oh),N1=new Set(["image","url"]),P1=e=>ao(e,N1,A1),T1=e=>ao(e,"",j1),Eo=()=>!0,ao=(e,t,n)=>{const r=_h.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},R1=e=>y1.test(e)&&!x1.test(e),Oh=()=>!1,j1=e=>w1.test(e),A1=e=>C1.test(e),_1=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),c=re("hueRotate"),f=re("invert"),h=re("gap"),d=re("gradientColorStops"),C=re("gradientColorStopPositions"),y=re("inset"),w=re("margin"),g=re("opacity"),p=re("padding"),v=re("saturate"),S=re("scale"),E=re("sepia"),b=re("skew"),k=re("space"),R=re("translate"),O=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",W,t],D=()=>[W,t],Q=()=>["",$t,un],M=()=>["auto",Dr,W],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",W],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Dr,W];return{cacheSize:500,separator:":",theme:{colors:[Eo],spacing:[$t,un],blur:["none","",cn,W],brightness:H(),borderColor:[e],borderRadius:["none","","full",cn,W],borderSpacing:D(),borderWidth:Q(),contrast:H(),grayscale:T(),hueRotate:H(),invert:T(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[S1,un],inset:F(),margin:F(),opacity:H(),padding:D(),saturate:H(),scale:H(),sepia:T(),skew:H(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[cn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),W]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",So,W]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",So,W]}],"grid-cols":[{"grid-cols":[Eo]}],"col-start-end":[{col:["auto",{span:["full",So,W]},W]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Eo]}],"row-start-end":[{row:["auto",{span:[So,W]},W]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[cn]},cn]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",cn,un]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gl]}],"font-family":[{font:[Eo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Dr,Gl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$t,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$t,un]}],"underline-offset":[{"underline-offset":["auto",$t,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),k1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P1]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[$t,W]}],"outline-w":[{outline:[$t,un]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[$t,un]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",cn,T1]}],"shadow-color":[{shadow:[Eo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",cn,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[So,W]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$t,un,Gl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},O1=m1(_1);function we(...e){return O1(kh(e))}const M1=Dx,Mh=x.forwardRef(({className:e,...t},n)=>m.jsx(yh,{ref:n,className:we("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Mh.displayName=yh.displayName;const L1=sc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Lh=x.forwardRef(({className:e,variant:t,...n},r)=>m.jsx(xh,{ref:r,className:we(L1({variant:t}),e),...n}));Lh.displayName=xh.displayName;const I1=x.forwardRef(({className:e,...t},n)=>m.jsx(Sh,{ref:n,className:we("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));I1.displayName=Sh.displayName;const Ih=x.forwardRef(({className:e,...t},n)=>m.jsx(Eh,{ref:n,className:we("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:m.jsx(e1,{className:"h-4 w-4"})}));Ih.displayName=Eh.displayName;const Dh=x.forwardRef(({className:e,...t},n)=>m.jsx(wh,{ref:n,className:we("text-sm font-semibold",e),...t}));Dh.displayName=wh.displayName;const zh=x.forwardRef(({className:e,...t},n)=>m.jsx(Ch,{ref:n,className:we("text-sm opacity-90",e),...t}));zh.displayName=Ch.displayName;function D1(){const{toasts:e}=Q0();return m.jsxs(M1,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return m.jsxs(Lh,{...i,children:[m.jsxs("div",{className:"grid gap-1",children:[n&&m.jsx(Dh,{children:n}),r&&m.jsx(zh,{children:r})]}),o,m.jsx(Ih,{})]},t)}),m.jsx(Mh,{})]})}var Zd=["light","dark"],z1="(prefers-color-scheme: dark)",F1=x.createContext(void 0),$1={setTheme:e=>{},themes:[]},U1=()=>{var e;return(e=x.useContext(F1))!=null?e:$1};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(C=>`'${C}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?Zd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(C,y=!1,w=!0)=>{let g=s?s[C]:C,p=y?C+"|| ''":`'${g}'`,v="";return o&&w&&!y&&Zd.includes(C)&&(v+=`d.style.colorScheme = '${C}';`),n==="class"?y||g?v+=`c.add(${p})`:v+="null":g&&(v+=`d[s](n,${p})`),v},d=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${z1}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return x.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:d}})});var B1=e=>{switch(e){case"success":return W1;case"info":return K1;case"warning":return Q1;case"error":return G1;default:return null}},V1=Array(12).fill(0),H1=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},V1.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),W1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Q1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),K1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),G1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Y1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),q1=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ya=1,X1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ya++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async a=>{if(i=["resolve",a],j.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(J1(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ya++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},$e=new X1,Z1=(e,t)=>{let n=(t==null?void 0:t.id)||Ya++;return $e.addToast({title:e,...t,id:n}),n},J1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ew=Z1,tw=()=>$e.toasts,nw=()=>$e.getActiveToasts();Object.assign(ew,{success:$e.success,info:$e.info,warning:$e.warning,error:$e.error,custom:$e.custom,message:$e.message,promise:$e.promise,dismiss:$e.dismiss,loading:$e.loading},{getHistory:tw,getToasts:nw});function rw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}rw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function zi(e){return e.label!==void 0}var ow=3,iw="32px",sw="16px",Jd=4e3,lw=356,aw=14,uw=20,cw=200;function mt(...e){return e.filter(Boolean).join(" ")}function dw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var fw=e=>{var t,n,r,o,i,s,l,a,u,c,f;let{invert:h,toast:d,unstyled:C,interacting:y,setHeights:w,visibleToasts:g,heights:p,index:v,toasts:S,expanded:E,removeToast:b,defaultRichColors:k,closeButton:R,style:O,cancelButtonStyle:_,actionButtonStyle:F,className:D="",descriptionClassName:Q="",duration:M,position:Y,gap:$,loadingIcon:V,expandByDefault:P,classNames:T,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z}=e,[K,q]=j.useState(null),[he,Pe]=j.useState(null),[J,cr]=j.useState(!1),[tn,$n]=j.useState(!1),[nn,dr]=j.useState(!1),[rn,hi]=j.useState(!1),[ml,gi]=j.useState(!1),[hl,fo]=j.useState(0),[fr,Pc]=j.useState(0),po=j.useRef(d.duration||M||Jd),Tc=j.useRef(null),Un=j.useRef(null),sv=v===0,lv=v+1<=g,nt=d.type,pr=d.dismissible!==!1,av=d.className||"",uv=d.descriptionClassName||"",vi=j.useMemo(()=>p.findIndex(U=>U.toastId===d.id)||0,[p,d.id]),cv=j.useMemo(()=>{var U;return(U=d.closeButton)!=null?U:R},[d.closeButton,R]),Rc=j.useMemo(()=>d.duration||M||Jd,[d.duration,M]),gl=j.useRef(0),mr=j.useRef(0),jc=j.useRef(0),hr=j.useRef(null),[dv,fv]=Y.split("-"),Ac=j.useMemo(()=>p.reduce((U,te,se)=>se>=vi?U:U+te.height,0),[p,vi]),_c=q1(),pv=d.invert||h,vl=nt==="loading";mr.current=j.useMemo(()=>vi*$+Ac,[vi,Ac]),j.useEffect(()=>{po.current=Rc},[Rc]),j.useEffect(()=>{cr(!0)},[]),j.useEffect(()=>{let U=Un.current;if(U){let te=U.getBoundingClientRect().height;return Pc(te),w(se=>[{toastId:d.id,height:te,position:d.position},...se]),()=>w(se=>se.filter(ct=>ct.toastId!==d.id))}},[w,d.id]),j.useLayoutEffect(()=>{if(!J)return;let U=Un.current,te=U.style.height;U.style.height="auto";let se=U.getBoundingClientRect().height;U.style.height=te,Pc(se),w(ct=>ct.find(dt=>dt.toastId===d.id)?ct.map(dt=>dt.toastId===d.id?{...dt,height:se}:dt):[{toastId:d.id,height:se,position:d.position},...ct])},[J,d.title,d.description,w,d.id]);let on=j.useCallback(()=>{$n(!0),fo(mr.current),w(U=>U.filter(te=>te.toastId!==d.id)),setTimeout(()=>{b(d)},cw)},[d,b,w,mr]);j.useEffect(()=>{if(d.promise&&nt==="loading"||d.duration===1/0||d.type==="loading")return;let U;return E||y||z&&_c?(()=>{if(jc.current{var te;(te=d.onAutoClose)==null||te.call(d,d),on()},po.current)),()=>clearTimeout(U)},[E,y,d,nt,z,_c,on]),j.useEffect(()=>{d.delete&&on()},[on,d.delete]);function mv(){var U,te,se;return L!=null&&L.loading?j.createElement("div",{className:mt(T==null?void 0:T.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":nt==="loading"},L.loading):V?j.createElement("div",{className:mt(T==null?void 0:T.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":nt==="loading"},V):j.createElement(H1,{className:mt(T==null?void 0:T.loader,(se=d==null?void 0:d.classNames)==null?void 0:se.loader),visible:nt==="loading"})}return j.createElement("li",{tabIndex:0,ref:Un,className:mt(D,av,T==null?void 0:T.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[nt],(n=d==null?void 0:d.classNames)==null?void 0:n[nt]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:k,"data-styled":!(d.jsx||d.unstyled||C),"data-mounted":J,"data-promise":!!d.promise,"data-swiped":ml,"data-removed":tn,"data-visible":lv,"data-y-position":dv,"data-x-position":fv,"data-index":v,"data-front":sv,"data-swiping":nn,"data-dismissible":pr,"data-type":nt,"data-invert":pv,"data-swipe-out":rn,"data-swipe-direction":he,"data-expanded":!!(E||P&&J),style:{"--index":v,"--toasts-before":v,"--z-index":S.length-v,"--offset":`${tn?hl:mr.current}px`,"--initial-height":P?"auto":`${fr}px`,...O,...d.style},onDragEnd:()=>{dr(!1),q(null),hr.current=null},onPointerDown:U=>{vl||!pr||(Tc.current=new Date,fo(mr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(dr(!0),hr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,se,ct;if(rn||!pr)return;hr.current=null;let dt=Number(((U=Un.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),sn=Number(((te=Un.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bn=new Date().getTime()-((se=Tc.current)==null?void 0:se.getTime()),ft=K==="x"?dt:sn,ln=Math.abs(ft)/Bn;if(Math.abs(ft)>=uw||ln>.11){fo(mr.current),(ct=d.onDismiss)==null||ct.call(d,d),Pe(K==="x"?dt>0?"right":"left":sn>0?"down":"up"),on(),hi(!0),gi(!1);return}dr(!1),q(null)},onPointerMove:U=>{var te,se,ct,dt;if(!hr.current||!pr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let sn=U.clientY-hr.current.y,Bn=U.clientX-hr.current.x,ft=(se=e.swipeDirections)!=null?se:dw(Y);!K&&(Math.abs(Bn)>1||Math.abs(sn)>1)&&q(Math.abs(Bn)>Math.abs(sn)?"x":"y");let ln={x:0,y:0};K==="y"?(ft.includes("top")||ft.includes("bottom"))&&(ft.includes("top")&&sn<0||ft.includes("bottom")&&sn>0)&&(ln.y=sn):K==="x"&&(ft.includes("left")||ft.includes("right"))&&(ft.includes("left")&&Bn<0||ft.includes("right")&&Bn>0)&&(ln.x=Bn),(Math.abs(ln.x)>0||Math.abs(ln.y)>0)&&gi(!0),(ct=Un.current)==null||ct.style.setProperty("--swipe-amount-x",`${ln.x}px`),(dt=Un.current)==null||dt.style.setProperty("--swipe-amount-y",`${ln.y}px`)}},cv&&!d.jsx?j.createElement("button",{"aria-label":H,"data-disabled":vl,"data-close-button":!0,onClick:vl||!pr?()=>{}:()=>{var U;on(),(U=d.onDismiss)==null||U.call(d,d)},className:mt(T==null?void 0:T.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:Y1):null,d.jsx||x.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:j.createElement(j.Fragment,null,nt||d.icon||d.promise?j.createElement("div",{"data-icon":"",className:mt(T==null?void 0:T.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||mv():null,d.type!=="loading"?d.icon||(L==null?void 0:L[nt])||B1(nt):null):null,j.createElement("div",{"data-content":"",className:mt(T==null?void 0:T.content,(l=d==null?void 0:d.classNames)==null?void 0:l.content)},j.createElement("div",{"data-title":"",className:mt(T==null?void 0:T.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},typeof d.title=="function"?d.title():d.title),d.description?j.createElement("div",{"data-description":"",className:mt(Q,uv,T==null?void 0:T.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),x.isValidElement(d.cancel)?d.cancel:d.cancel&&zi(d.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||_,onClick:U=>{var te,se;zi(d.cancel)&&pr&&((se=(te=d.cancel).onClick)==null||se.call(te,U),on())},className:mt(T==null?void 0:T.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,x.isValidElement(d.action)?d.action:d.action&&zi(d.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||F,onClick:U=>{var te,se;zi(d.action)&&((se=(te=d.action).onClick)==null||se.call(te,U),!U.defaultPrevented&&on())},className:mt(T==null?void 0:T.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function ef(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function pw(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?sw:iw;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var mw=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:f,duration:h,style:d,visibleToasts:C=ow,toastOptions:y,dir:w=ef(),gap:g=aw,loadingIcon:p,icons:v,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[b,k]=j.useState([]),R=j.useMemo(()=>Array.from(new Set([r].concat(b.filter(z=>z.position).map(z=>z.position)))),[b,r]),[O,_]=j.useState([]),[F,D]=j.useState(!1),[Q,M]=j.useState(!1),[Y,$]=j.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=j.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=j.useRef(null),L=j.useRef(!1),H=j.useCallback(z=>{k(K=>{var q;return(q=K.find(he=>he.id===z.id))!=null&&q.delete||$e.dismiss(z.id),K.filter(({id:he})=>he!==z.id)})},[]);return j.useEffect(()=>$e.subscribe(z=>{if(z.dismiss){k(K=>K.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{Ym.flushSync(()=>{k(K=>{let q=K.findIndex(he=>he.id===z.id);return q!==-1?[...K.slice(0,q),{...K[q],...z},...K.slice(q+1)]:[z,...K]})})})}),[]),j.useEffect(()=>{if(c!=="system"){$(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:K})=>{$(K?"dark":"light")})}catch{z.addListener(({matches:q})=>{try{$(q?"dark":"light")}catch(he){console.error(he)}})}},[c]),j.useEffect(()=>{b.length<=1&&D(!1)},[b]),j.useEffect(()=>{let z=K=>{var q,he;o.every(Pe=>K[Pe]||K.code===Pe)&&(D(!0),(q=V.current)==null||q.focus()),K.code==="Escape"&&(document.activeElement===V.current||(he=V.current)!=null&&he.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),j.useEffect(()=>{if(V.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,L.current=!1)}},[V.current]),j.createElement("section",{ref:t,"aria-label":`${S} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((z,K)=>{var q;let[he,Pe]=z.split("-");return b.length?j.createElement("ol",{key:z,dir:w==="auto"?ef():w,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":Y,"data-y-position":he,"data-lifted":F&&b.length>1&&!i,"data-x-position":Pe,style:{"--front-toast-height":`${((q=O[0])==null?void 0:q.height)||0}px`,"--width":`${lw}px`,"--gap":`${g}px`,...d,...pw(a,u)},onBlur:J=>{L.current&&!J.currentTarget.contains(J.relatedTarget)&&(L.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L.current||(L.current=!0,T.current=J.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{Q||D(!1)},onDragEnd:()=>D(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},b.filter(J=>!J.position&&K===0||J.position===z).map((J,cr)=>{var tn,$n;return j.createElement(fw,{key:J.id,icons:v,index:cr,toast:J,defaultRichColors:f,duration:(tn=y==null?void 0:y.duration)!=null?tn:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:C,closeButton:($n=y==null?void 0:y.closeButton)!=null?$n:s,interacting:Q,position:z,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:b.filter(nn=>nn.position==J.position),heights:O.filter(nn=>nn.position==J.position),setHeights:_,expandByDefault:i,gap:g,loadingIcon:p,expanded:F,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const hw=({...e})=>{const{theme:t="system"}=U1();return m.jsx(mw,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var gw=du[" useId ".trim().toString()]||(()=>{}),vw=0;function Fh(e){const[t,n]=x.useState(gw());return Dt(()=>{n(r=>r??String(vw++))},[e]),t?`radix-${t}`:""}const yw=["top","right","bottom","left"],Ln=Math.min,Ge=Math.max,Ps=Math.round,Fi=Math.floor,It=e=>({x:e,y:e}),xw={left:"right",right:"left",bottom:"top",top:"bottom"},ww={start:"end",end:"start"};function qa(e,t,n){return Ge(e,Ln(t,n))}function Zt(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function uo(e){return e.split("-")[1]}function uc(e){return e==="x"?"y":"x"}function cc(e){return e==="y"?"height":"width"}const Cw=new Set(["top","bottom"]);function Ot(e){return Cw.has(Jt(e))?"y":"x"}function dc(e){return uc(Ot(e))}function Sw(e,t,n){n===void 0&&(n=!1);const r=uo(e),o=dc(e),i=cc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ts(s)),[s,Ts(s)]}function Ew(e){const t=Ts(e);return[Xa(e),t,Xa(t)]}function Xa(e){return e.replace(/start|end/g,t=>ww[t])}const tf=["left","right"],nf=["right","left"],bw=["top","bottom"],kw=["bottom","top"];function Nw(e,t,n){switch(e){case"top":case"bottom":return n?t?nf:tf:t?tf:nf;case"left":case"right":return t?bw:kw;default:return[]}}function Pw(e,t,n,r){const o=uo(e);let i=Nw(Jt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Xa)))),i}function Ts(e){return e.replace(/left|right|bottom|top/g,t=>xw[t])}function Tw(e){return{top:0,right:0,bottom:0,left:0,...e}}function $h(e){return typeof e!="number"?Tw(e):{top:e,right:e,bottom:e,left:e}}function Rs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function rf(e,t,n){let{reference:r,floating:o}=e;const i=Ot(t),s=dc(t),l=cc(s),a=Jt(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let d;switch(a){case"top":d={x:c,y:r.y-o.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-o.width,y:f};break;default:d={x:r.x,y:r.y}}switch(uo(t)){case"start":d[s]-=h*(n&&u?-1:1);break;case"end":d[s]+=h*(n&&u?-1:1);break}return d}const Rw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=rf(u,r,a),h=r,d={},C=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=Zt(e,t)||{};if(u==null)return{};const f=$h(c),h={x:n,y:r},d=dc(o),C=cc(d),y=await s.getDimensions(u),w=d==="y",g=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",S=i.reference[C]+i.reference[d]-h[d]-i.floating[C],E=h[d]-i.reference[d],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=b?b[v]:0;(!k||!await(s.isElement==null?void 0:s.isElement(b)))&&(k=l.floating[v]||i.floating[C]);const R=S/2-E/2,O=k/2-y[C]/2-1,_=Ln(f[g],O),F=Ln(f[p],O),D=_,Q=k-y[C]-F,M=k/2-y[C]/2+R,Y=qa(D,M,Q),$=!a.arrow&&uo(o)!=null&&M!==Y&&i.reference[C]/2-(MM<=0)){var F,D;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,Y=k[M];if(Y&&(!(f==="alignment"?p!==Ot(Y):!1)||_.every(P=>P.overflows[0]>0&&Ot(P.placement)===p)))return{data:{index:M,overflows:_},reset:{placement:Y}};let $=(D=_.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:D.placement;if(!$)switch(d){case"bestFit":{var Q;const V=(Q=_.filter(P=>{if(b){const T=Ot(P.placement);return T===p||T==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0)]).sort((P,T)=>P[1]-T[1])[0])==null?void 0:Q[0];V&&($=V);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function of(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sf(e){return yw.some(t=>e[t]>=0)}const _w=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zt(e,t);switch(r){case"referenceHidden":{const i=await ti(t,{...o,elementContext:"reference"}),s=of(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:sf(s)}}}case"escaped":{const i=await ti(t,{...o,altBoundary:!0}),s=of(i,n.floating);return{data:{escapedOffsets:s,escaped:sf(s)}}}default:return{}}}}},Uh=new Set(["left","top"]);async function Ow(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Jt(n),l=uo(n),a=Ot(n)==="y",u=Uh.has(s)?-1:1,c=i&&a?-1:1,f=Zt(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof C=="number"&&(d=l==="end"?C*-1:C),a?{x:d*c,y:h*u}:{x:h*u,y:d*c}}const Mw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Ow(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Lw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:g,y:p}=w;return{x:g,y:p}}},...a}=Zt(e,t),u={x:n,y:r},c=await ti(t,a),f=Ot(Jt(o)),h=uc(f);let d=u[h],C=u[f];if(i){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",p=d+c[w],v=d-c[g];d=qa(p,d,v)}if(s){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",p=C+c[w],v=C-c[g];C=qa(p,C,v)}const y=l.fn({...t,[h]:d,[f]:C});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:i,[f]:s}}}}}},Iw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Zt(e,t),c={x:n,y:r},f=Ot(o),h=uc(f);let d=c[h],C=c[f];const y=Zt(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const v=h==="y"?"height":"width",S=i.reference[h]-i.floating[v]+w.mainAxis,E=i.reference[h]+i.reference[v]-w.mainAxis;dE&&(d=E)}if(u){var g,p;const v=h==="y"?"width":"height",S=Uh.has(Jt(o)),E=i.reference[f]-i.floating[v]+(S&&((g=s.offset)==null?void 0:g[f])||0)+(S?0:w.crossAxis),b=i.reference[f]+i.reference[v]+(S?0:((p=s.offset)==null?void 0:p[f])||0)-(S?w.crossAxis:0);Cb&&(C=b)}return{[h]:d,[f]:C}}}},Dw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Zt(e,t),c=await ti(t,u),f=Jt(o),h=uo(o),d=Ot(o)==="y",{width:C,height:y}=i.floating;let w,g;f==="top"||f==="bottom"?(w=f,g=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,w=h==="end"?"top":"bottom");const p=y-c.top-c.bottom,v=C-c.left-c.right,S=Ln(y-c[w],p),E=Ln(C-c[g],v),b=!t.middlewareData.shift;let k=S,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=p),b&&!h){const _=Ge(c.left,0),F=Ge(c.right,0),D=Ge(c.top,0),Q=Ge(c.bottom,0);d?R=C-2*(_!==0||F!==0?_+F:Ge(c.left,c.right)):k=y-2*(D!==0||Q!==0?D+Q:Ge(c.top,c.bottom))}await a({...t,availableWidth:R,availableHeight:k});const O=await s.getDimensions(l.floating);return C!==O.width||y!==O.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function co(e){return Bh(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ft(e){var t;return(t=(Bh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bh(e){return tl()?e instanceof Node||e instanceof Xe(e).Node:!1}function bt(e){return tl()?e instanceof Element||e instanceof Xe(e).Element:!1}function zt(e){return tl()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function lf(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}const zw=new Set(["inline","contents"]);function mi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!zw.has(o)}const Fw=new Set(["table","td","th"]);function $w(e){return Fw.has(co(e))}const Uw=[":popover-open",":modal"];function nl(e){return Uw.some(t=>{try{return e.matches(t)}catch{return!1}})}const Bw=["transform","translate","scale","rotate","perspective"],Vw=["transform","translate","scale","rotate","perspective","filter"],Hw=["paint","layout","strict","content"];function fc(e){const t=pc(),n=bt(e)?kt(e):e;return Bw.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Vw.some(r=>(n.willChange||"").includes(r))||Hw.some(r=>(n.contain||"").includes(r))}function Ww(e){let t=In(e);for(;zt(t)&&!to(t);){if(fc(t))return t;if(nl(t))return null;t=In(t)}return null}function pc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qw=new Set(["html","body","#document"]);function to(e){return Qw.has(co(e))}function kt(e){return Xe(e).getComputedStyle(e)}function rl(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(co(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lf(e)&&e.host||Ft(e);return lf(t)?t.host:t}function Vh(e){const t=In(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&mi(t)?t:Vh(t)}function ni(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vh(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Xe(o);if(i){const l=Za(s);return t.concat(s,s.visualViewport||[],mi(o)?o:[],l&&n?ni(l):[])}return t.concat(o,ni(o,[],n))}function Za(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hh(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=zt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Ps(n)!==i||Ps(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function mc(e){return bt(e)?e:e.contextElement}function zr(e){const t=mc(e);if(!zt(t))return It(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Hh(t);let s=(i?Ps(n.width):n.width)/r,l=(i?Ps(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Kw=It(0);function Wh(e){const t=Xe(e);return!pc()||!t.visualViewport?Kw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function lr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=mc(e);let s=It(1);t&&(r?bt(r)&&(s=zr(r)):s=zr(e));const l=Gw(i,n,r)?Wh(i):It(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const h=Xe(i),d=r&&bt(r)?Xe(r):r;let C=h,y=Za(C);for(;y&&r&&d!==C;){const w=zr(y),g=y.getBoundingClientRect(),p=kt(y),v=g.left+(y.clientLeft+parseFloat(p.paddingLeft))*w.x,S=g.top+(y.clientTop+parseFloat(p.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=v,u+=S,C=Xe(y),y=Za(C)}}return Rs({width:c,height:f,x:a,y:u})}function hc(e,t){const n=rl(e).scrollLeft;return t?t.left+n:lr(Ft(e)).left+n}function Qh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:hc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Yw(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ft(r),l=t?nl(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=It(1);const c=It(0),f=zt(r);if((f||!f&&!i)&&((co(r)!=="body"||mi(s))&&(a=rl(r)),zt(r))){const d=lr(r);u=zr(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}const h=s&&!f&&!i?Qh(s,a,!0):It(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-a.scrollTop*u.y+c.y+h.y}}function qw(e){return Array.from(e.getClientRects())}function Xw(e){const t=Ft(e),n=rl(e),r=e.ownerDocument.body,o=Ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+hc(e);const l=-n.scrollTop;return kt(r).direction==="rtl"&&(s+=Ge(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Zw(e,t){const n=Xe(e),r=Ft(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=pc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const Jw=new Set(["absolute","fixed"]);function eC(e,t){const n=lr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=zt(e)?zr(e):It(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function af(e,t,n){let r;if(t==="viewport")r=Zw(e,n);else if(t==="document")r=Xw(Ft(e));else if(bt(t))r=eC(t,n);else{const o=Wh(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rs(r)}function Kh(e,t){const n=In(e);return n===t||!bt(n)||to(n)?!1:kt(n).position==="fixed"||Kh(n,t)}function tC(e,t){const n=t.get(e);if(n)return n;let r=ni(e,[],!1).filter(l=>bt(l)&&co(l)!=="body"),o=null;const i=kt(e).position==="fixed";let s=i?In(e):e;for(;bt(s)&&!to(s);){const l=kt(s),a=fc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&Jw.has(o.position)||mi(s)&&!a&&Kh(e,s))?r=r.filter(c=>c!==s):o=l,s=In(s)}return t.set(e,r),r}function nC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?nl(t)?[]:tC(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=af(t,c,o);return u.top=Ge(f.top,u.top),u.right=Ln(f.right,u.right),u.bottom=Ln(f.bottom,u.bottom),u.left=Ge(f.left,u.left),u},af(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function rC(e){const{width:t,height:n}=Hh(e);return{width:t,height:n}}function oC(e,t,n){const r=zt(t),o=Ft(t),i=n==="fixed",s=lr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=It(0);function u(){a.x=hc(o)}if(r||!r&&!i)if((co(t)!=="body"||mi(o))&&(l=rl(t)),r){const d=lr(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?Qh(o,l):It(0),f=s.left+l.scrollLeft-a.x-c.x,h=s.top+l.scrollTop-a.y-c.y;return{x:f,y:h,width:s.width,height:s.height}}function Yl(e){return kt(e).position==="static"}function uf(e,t){if(!zt(e)||kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ft(e)===n&&(n=n.ownerDocument.body),n}function Gh(e,t){const n=Xe(e);if(nl(e))return n;if(!zt(e)){let o=In(e);for(;o&&!to(o);){if(bt(o)&&!Yl(o))return o;o=In(o)}return n}let r=uf(e,t);for(;r&&$w(r)&&Yl(r);)r=uf(r,t);return r&&to(r)&&Yl(r)&&!fc(r)?n:r||Ww(e)||n}const iC=async function(e){const t=this.getOffsetParent||Gh,n=this.getDimensions,r=await n(e.floating);return{reference:oC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sC(e){return kt(e).direction==="rtl"}const lC={convertOffsetParentRelativeRectToViewportRelativeRect:Yw,getDocumentElement:Ft,getClippingRect:nC,getOffsetParent:Gh,getElementRects:iC,getClientRects:qw,getDimensions:rC,getScale:zr,isElement:bt,isRTL:sC};function Yh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aC(e,t){let n=null,r;const o=Ft(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:f,width:h,height:d}=u;if(l||t(),!h||!d)return;const C=Fi(f),y=Fi(o.clientWidth-(c+h)),w=Fi(o.clientHeight-(f+d)),g=Fi(c),v={rootMargin:-C+"px "+-y+"px "+-w+"px "+-g+"px",threshold:Ge(0,Ln(1,a))||1};let S=!0;function E(b){const k=b[0].intersectionRatio;if(k!==a){if(!S)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Yh(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return s(!0),i}function uC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=mc(e),c=o||i?[...u?ni(u):[],...ni(t)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=u&&l?aC(u,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(t)})),n()}),u&&!a&&d.observe(u),d.observe(t));let C,y=a?lr(e):null;a&&w();function w(){const g=lr(e);y&&!Yh(y,g)&&n(),y=g,C=requestAnimationFrame(w)}return n(),()=>{var g;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(g=d)==null||g.disconnect(),d=null,a&&cancelAnimationFrame(C)}}const cC=Mw,dC=Lw,fC=Aw,pC=Dw,mC=_w,cf=jw,hC=Iw,gC=(e,t,n)=>{const r=new Map,o={platform:lC,...n},i={...o.platform,_c:r};return Rw(e,t,{...o,platform:i})};var vC=typeof document<"u",yC=function(){},ts=vC?x.useLayoutEffect:yC;function js(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!js(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!js(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function df(e,t){const n=qh(e);return Math.round(t*n)/n}function ql(e){const t=x.useRef(e);return ts(()=>{t.current=e}),t}function xC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=x.useState(r);js(h,r)||d(r);const[C,y]=x.useState(null),[w,g]=x.useState(null),p=x.useCallback(P=>{P!==b.current&&(b.current=P,y(P))},[]),v=x.useCallback(P=>{P!==k.current&&(k.current=P,g(P))},[]),S=i||C,E=s||w,b=x.useRef(null),k=x.useRef(null),R=x.useRef(c),O=a!=null,_=ql(a),F=ql(o),D=ql(u),Q=x.useCallback(()=>{if(!b.current||!k.current)return;const P={placement:t,strategy:n,middleware:h};F.current&&(P.platform=F.current),gC(b.current,k.current,P).then(T=>{const L={...T,isPositioned:D.current!==!1};M.current&&!js(R.current,L)&&(R.current=L,fi.flushSync(()=>{f(L)}))})},[h,t,n,F,D]);ts(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const M=x.useRef(!1);ts(()=>(M.current=!0,()=>{M.current=!1}),[]),ts(()=>{if(S&&(b.current=S),E&&(k.current=E),S&&E){if(_.current)return _.current(S,E,Q);Q()}},[S,E,Q,_,O]);const Y=x.useMemo(()=>({reference:b,floating:k,setReference:p,setFloating:v}),[p,v]),$=x.useMemo(()=>({reference:S,floating:E}),[S,E]),V=x.useMemo(()=>{const P={position:n,left:0,top:0};if(!$.floating)return P;const T=df($.floating,c.x),L=df($.floating,c.y);return l?{...P,transform:"translate("+T+"px, "+L+"px)",...qh($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:L}},[n,l,$.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:Q,refs:Y,elements:$,floatingStyles:V}),[c,Q,Y,$,V])}const wC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?cf({element:r.current,padding:o}).fn(n):{}:r?cf({element:r,padding:o}).fn(n):{}}}},CC=(e,t)=>({...cC(e),options:[e,t]}),SC=(e,t)=>({...dC(e),options:[e,t]}),EC=(e,t)=>({...hC(e),options:[e,t]}),bC=(e,t)=>({...fC(e),options:[e,t]}),kC=(e,t)=>({...pC(e),options:[e,t]}),NC=(e,t)=>({...mC(e),options:[e,t]}),PC=(e,t)=>({...wC(e),options:[e,t]});var TC="Arrow",Xh=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return m.jsx(ve.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xh.displayName=TC;var RC=Xh;function jC(e){const[t,n]=x.useState(void 0);return Dt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zh="Popper",[Jh,eg]=lo(Zh),[ob,tg]=Jh(Zh),ng="PopperAnchor",rg=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=tg(ng,n),s=x.useRef(null),l=Je(t,s);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:m.jsx(ve.div,{...o,ref:l})});rg.displayName=ng;var gc="PopperContent",[AC,_C]=Jh(gc),og=x.forwardRef((e,t)=>{var J,cr,tn,$n,nn,dr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:C,...y}=e,w=tg(gc,n),[g,p]=x.useState(null),v=Je(t,rn=>p(rn)),[S,E]=x.useState(null),b=jC(S),k=(b==null?void 0:b.width)??0,R=(b==null?void 0:b.height)??0,O=r+(i!=="center"?"-"+i:""),_=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},F=Array.isArray(u)?u:[u],D=F.length>0,Q={padding:_,boundary:F.filter(MC),altBoundary:D},{refs:M,floatingStyles:Y,placement:$,isPositioned:V,middlewareData:P}=xC({strategy:"fixed",placement:O,whileElementsMounted:(...rn)=>uC(...rn,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[CC({mainAxis:o+R,alignmentAxis:s}),a&&SC({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?EC():void 0,...Q}),a&&bC({...Q}),kC({...Q,apply:({elements:rn,rects:hi,availableWidth:ml,availableHeight:gi})=>{const{width:hl,height:fo}=hi.reference,fr=rn.floating.style;fr.setProperty("--radix-popper-available-width",`${ml}px`),fr.setProperty("--radix-popper-available-height",`${gi}px`),fr.setProperty("--radix-popper-anchor-width",`${hl}px`),fr.setProperty("--radix-popper-anchor-height",`${fo}px`)}}),S&&PC({element:S,padding:l}),LC({arrowWidth:k,arrowHeight:R}),h&&NC({strategy:"referenceHidden",...Q})]}),[T,L]=lg($),H=Mn(C);Dt(()=>{V&&(H==null||H())},[V,H]);const z=(J=P.arrow)==null?void 0:J.x,K=(cr=P.arrow)==null?void 0:cr.y,q=((tn=P.arrow)==null?void 0:tn.centerOffset)!==0,[he,Pe]=x.useState();return Dt(()=>{g&&Pe(window.getComputedStyle(g).zIndex)},[g]),m.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:V?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[($n=P.transformOrigin)==null?void 0:$n.x,(nn=P.transformOrigin)==null?void 0:nn.y].join(" "),...((dr=P.hide)==null?void 0:dr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(AC,{scope:n,placedSide:T,onArrowChange:E,arrowX:z,arrowY:K,shouldHideArrow:q,children:m.jsx(ve.div,{"data-side":T,"data-align":L,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});og.displayName=gc;var ig="PopperArrow",OC={top:"bottom",right:"left",bottom:"top",left:"right"},sg=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=_C(ig,r),s=OC[i.placedSide];return m.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:m.jsx(RC,{...o,ref:n,style:{...o.style,display:"block"}})})});sg.displayName=ig;function MC(e){return e!==null}var LC=e=>({name:"transformOrigin",options:e,fn(t){var w,g,p;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=lg(n),f={start:"0%",center:"50%",end:"100%"}[c],h=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,d=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let C="",y="";return u==="bottom"?(C=s?f:`${h}px`,y=`${-a}px`):u==="top"?(C=s?f:`${h}px`,y=`${r.floating.height+a}px`):u==="right"?(C=`${-a}px`,y=s?f:`${d}px`):u==="left"&&(C=`${r.floating.width+a}px`,y=s?f:`${d}px`),{data:{x:C,y}}}});function lg(e){const[t,n="center"]=e.split("-");return[t,n]}var IC=rg,DC=og,zC=sg,[ol,ib]=lo("Tooltip",[eg]),vc=eg(),ag="TooltipProvider",FC=700,ff="tooltip.open",[$C,ug]=ol(ag),cg=e=>{const{__scopeTooltip:t,delayDuration:n=FC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),m.jsx($C,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};cg.displayName=ag;var dg="Tooltip",[sb,il]=ol(dg),Ja="TooltipTrigger",UC=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=il(Ja,n),i=ug(Ja,n),s=vc(n),l=x.useRef(null),a=Je(t,l,o.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),f=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),m.jsx(IC,{asChild:!0,...s,children:m.jsx(ve.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:me(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:me(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:me(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});UC.displayName=Ja;var BC="TooltipPortal",[lb,VC]=ol(BC,{forceMount:void 0}),no="TooltipContent",fg=x.forwardRef((e,t)=>{const n=VC(no,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=il(no,e.__scopeTooltip);return m.jsx(Xs,{present:r||s.open,children:s.disableHoverableContent?m.jsx(pg,{side:o,...i,ref:t}):m.jsx(HC,{side:o,...i,ref:t})})}),HC=x.forwardRef((e,t)=>{const n=il(no,e.__scopeTooltip),r=ug(no,e.__scopeTooltip),o=x.useRef(null),i=Je(t,o),[s,l]=x.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,h=x.useCallback(()=>{l(null),f(!1)},[f]),d=x.useCallback((C,y)=>{const w=C.currentTarget,g={x:C.clientX,y:C.clientY},p=YC(g,w.getBoundingClientRect()),v=qC(g,p),S=XC(y.getBoundingClientRect()),E=JC([...v,...S]);l(E),f(!0)},[f]);return x.useEffect(()=>()=>h(),[h]),x.useEffect(()=>{if(a&&c){const C=w=>d(w,c),y=w=>d(w,a);return a.addEventListener("pointerleave",C),c.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",C),c.removeEventListener("pointerleave",y)}}},[a,c,d,h]),x.useEffect(()=>{if(s){const C=y=>{const w=y.target,g={x:y.clientX,y:y.clientY},p=(a==null?void 0:a.contains(w))||(c==null?void 0:c.contains(w)),v=!ZC(g,s);p?h():v&&(h(),u())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[a,c,s,u,h]),m.jsx(pg,{...e,ref:i})}),[WC,QC]=ol(dg,{isInside:!1}),KC=q0("TooltipContent"),pg=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=il(no,n),u=vc(n),{onClose:c}=a;return x.useEffect(()=>(document.addEventListener(ff,c),()=>document.removeEventListener(ff,c)),[c]),x.useEffect(()=>{if(a.trigger){const f=h=>{const d=h.target;d!=null&&d.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),m.jsx(nc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:m.jsxs(DC,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(KC,{children:r}),m.jsx(WC,{scope:n,isInside:!0,children:m.jsx(xx,{id:a.contentId,role:"tooltip",children:o||r})})]})})});fg.displayName=no;var mg="TooltipArrow",GC=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=vc(n);return QC(mg,n).isInside?null:m.jsx(zC,{...o,...r,ref:t})});GC.displayName=mg;function YC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function qC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function XC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ZC(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=h>r&&n<(f-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function JC(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),eS(t)}function eS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tS=cg,hg=fg;const nS=tS,rS=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(hg,{ref:r,sideOffset:t,className:we("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));rS.displayName=hg.displayName;var sl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ll=typeof window>"u"||"Deno"in globalThis;function gt(){}function oS(e,t){return typeof e=="function"?e(t):e}function iS(e){return typeof e=="number"&&e>=0&&e!==1/0}function sS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eu(e,t){return typeof e=="function"?e(t):e}function lS(e,t){return typeof e=="function"?e(t):e}function pf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==yc(s,t.options))return!1}else if(!oi(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function mf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ri(t.options.mutationKey)!==ri(i))return!1}else if(!oi(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function yc(e,t){return((t==null?void 0:t.queryKeyHashFn)||ri)(e)}function ri(e){return JSON.stringify(e,(t,n)=>tu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function oi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>oi(e[n],t[n])):!1}function gg(e,t){if(e===t)return e;const n=hf(e)&&hf(t);if(n||tu(e)&&tu(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{},a=new Set(r);let u=0;for(let c=0;c{setTimeout(t,e)})}function uS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gg(e,t):t}function cS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function dS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var xc=Symbol();function vg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Gn,gn,$r,Tf,fS=(Tf=class extends sl{constructor(){super();Z(this,Gn);Z(this,gn);Z(this,$r);B(this,$r,t=>{if(!ll&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,gn)||this.setEventListener(N(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,gn))==null||t.call(this),B(this,gn,void 0))}setEventListener(t){var n;B(this,$r,t),(n=N(this,gn))==null||n.call(this),B(this,gn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,Gn)!==t&&(B(this,Gn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,Gn)=="boolean"?N(this,Gn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gn=new WeakMap,gn=new WeakMap,$r=new WeakMap,Tf),yg=new fS,Ur,vn,Br,Rf,pS=(Rf=class extends sl{constructor(){super();Z(this,Ur,!0);Z(this,vn);Z(this,Br);B(this,Br,t=>{if(!ll&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,vn)||this.setEventListener(N(this,Br))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,vn))==null||t.call(this),B(this,vn,void 0))}setEventListener(t){var n;B(this,Br,t),(n=N(this,vn))==null||n.call(this),B(this,vn,t(this.setOnline.bind(this)))}setOnline(t){N(this,Ur)!==t&&(B(this,Ur,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,Ur)}},Ur=new WeakMap,vn=new WeakMap,Br=new WeakMap,Rf),As=new pS;function mS(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function hS(e){return Math.min(1e3*2**e,3e4)}function xg(e){return(e??"online")==="online"?As.isOnline():!0}var wg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Xl(e){return e instanceof wg}function Cg(e){let t=!1,n=0,r=!1,o;const i=mS(),s=y=>{var w;r||(h(new wg(y)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>yg.isFocused()&&(e.networkMode==="always"||As.isOnline())&&e.canRun(),c=()=>xg(e.networkMode)&&e.canRun(),f=y=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,y),o==null||o(),i.resolve(y))},h=y=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,y),o==null||o(),i.reject(y))},d=()=>new Promise(y=>{var w;o=g=>{(r||u())&&y(g)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;o=void 0,r||(y=e.onContinue)==null||y.call(e)}),C=()=>{if(r)return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(f).catch(g=>{var b;if(r)return;const p=e.retry??(ll?0:3),v=e.retryDelay??hS,S=typeof v=="function"?v(n,g):v,E=p===!0||typeof p=="number"&&nu()?void 0:d()).then(()=>{t?h(g):C()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?C():d().then(C),i)}}var gS=e=>setTimeout(e,0);function vS(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=gS;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Ie=vS(),Yn,jf,Sg=(jf=class{constructor(){Z(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iS(this.gcTime)&&B(this,Yn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ll?1/0:5*60*1e3))}clearGcTimeout(){N(this,Yn)&&(clearTimeout(N(this,Yn)),B(this,Yn,void 0))}},Yn=new WeakMap,jf),Vr,qn,rt,Xn,Ae,ii,Zn,vt,Ut,Af,yS=(Af=class extends Sg{constructor(t){super();Z(this,vt);Z(this,Vr);Z(this,qn);Z(this,rt);Z(this,Xn);Z(this,Ae);Z(this,ii);Z(this,Zn);B(this,Zn,!1),B(this,ii,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,Xn,t.client),B(this,rt,N(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,Vr,wS(this.options)),this.state=t.state??N(this,Vr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,Ae))==null?void 0:t.promise}setOptions(t){this.options={...N(this,ii),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,rt).remove(this)}setData(t,n){const r=uS(this.state.data,t,this.options);return Te(this,vt,Ut).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Te(this,vt,Ut).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=N(this,Ae))==null?void 0:r.promise;return(o=N(this,Ae))==null||o.cancel(t),n?n.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,Vr))}isActive(){return this.observers.some(t=>lS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>eu(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!sS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,Ae)&&(N(this,Zn)?N(this,Ae).cancel({revert:!0}):N(this,Ae).cancelRetry()),this.scheduleGc()),N(this,rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,vt,Ut).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,Ae))return N(this,Ae).continueRetry(),N(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(d=>d.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(B(this,Zn,!0),r.signal)})},i=()=>{const h=vg(this.options,n),C=(()=>{const y={client:N(this,Xn),queryKey:this.queryKey,meta:this.meta};return o(y),y})();return B(this,Zn,!1),this.options.persister?this.options.persister(h,C,this):h(C)},l=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,Xn),state:this.state,fetchFn:i};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(l,this),B(this,qn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Te(this,vt,Ut).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const a=h=>{var d,C,y,w;Xl(h)&&h.silent||Te(this,vt,Ut).call(this,{type:"error",error:h}),Xl(h)||((C=(d=N(this,rt).config).onError)==null||C.call(d,h,this),(w=(y=N(this,rt).config).onSettled)==null||w.call(y,this.state.data,h,this)),this.scheduleGc()};return B(this,Ae,Cg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var d,C,y,w;if(h===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(g){a(g);return}(C=(d=N(this,rt).config).onSuccess)==null||C.call(d,h,this),(w=(y=N(this,rt).config).onSettled)==null||w.call(y,h,this.state.error,this),this.scheduleGc()},onError:a,onFail:(h,d)=>{Te(this,vt,Ut).call(this,{type:"failed",failureCount:h,error:d})},onPause:()=>{Te(this,vt,Ut).call(this,{type:"pause"})},onContinue:()=>{Te(this,vt,Ut).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),N(this,Ae).start()}},Vr=new WeakMap,qn=new WeakMap,rt=new WeakMap,Xn=new WeakMap,Ae=new WeakMap,ii=new WeakMap,Zn=new WeakMap,vt=new WeakSet,Ut=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...xS(r.data,this.options),fetchMeta:t.meta??null};case"success":return B(this,qn,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Xl(o)&&o.revert&&N(this,qn)?{...N(this,qn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ie.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,rt).notify({query:this,type:"updated",action:t})})},Af);function xS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Rt,_f,CS=(_f=class extends sl{constructor(t={}){super();Z(this,Rt);this.config=t,B(this,Rt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??yc(o,n);let s=this.get(i);return s||(s=new yS({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){N(this,Rt).has(t.queryHash)||(N(this,Rt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,Rt).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,Rt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ie.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,Rt).get(t)}getAll(){return[...N(this,Rt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>pf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>pf(t,r)):n}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Rt=new WeakMap,_f),jt,Me,Jn,At,dn,Of,SS=(Of=class extends Sg{constructor(t){super();Z(this,At);Z(this,jt);Z(this,Me);Z(this,Jn);this.mutationId=t.mutationId,B(this,Me,t.mutationCache),B(this,jt,[]),this.state=t.state||ES(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,jt).includes(t)||(N(this,jt).push(t),this.clearGcTimeout(),N(this,Me).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,jt,N(this,jt).filter(n=>n!==t)),this.scheduleGc(),N(this,Me).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,jt).length||(this.state.status==="pending"?this.scheduleGc():N(this,Me).remove(this))}continue(){var t;return((t=N(this,Jn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,f,h,d,C,y,w,g,p,v,S,E,b,k,R;const n=()=>{Te(this,At,dn).call(this,{type:"continue"})};B(this,Jn,Cg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,_)=>{Te(this,At,dn).call(this,{type:"failed",failureCount:O,error:_})},onPause:()=>{Te(this,At,dn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Me).canRun(this)}));const r=this.state.status==="pending",o=!N(this,Jn).canStart();try{if(r)n();else{Te(this,At,dn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=N(this,Me).config).onMutate)==null?void 0:s.call(i,t,this));const _=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));_!==this.state.context&&Te(this,At,dn).call(this,{type:"pending",context:_,variables:t,isPaused:o})}const O=await N(this,Jn).start();return await((c=(u=N(this,Me).config).onSuccess)==null?void 0:c.call(u,O,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,O,t,this.state.context)),await((C=(d=N(this,Me).config).onSettled)==null?void 0:C.call(d,O,null,this.state.variables,this.state.context,this)),await((w=(y=this.options).onSettled)==null?void 0:w.call(y,O,null,t,this.state.context)),Te(this,At,dn).call(this,{type:"success",data:O}),O}catch(O){try{throw await((p=(g=N(this,Me).config).onError)==null?void 0:p.call(g,O,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,O,t,this.state.context)),await((b=(E=N(this,Me).config).onSettled)==null?void 0:b.call(E,void 0,O,this.state.variables,this.state.context,this)),await((R=(k=this.options).onSettled)==null?void 0:R.call(k,void 0,O,t,this.state.context)),O}finally{Te(this,At,dn).call(this,{type:"error",error:O})}}finally{N(this,Me).runNext(this)}}},jt=new WeakMap,Me=new WeakMap,Jn=new WeakMap,At=new WeakSet,dn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ie.batch(()=>{N(this,jt).forEach(r=>{r.onMutationUpdate(t)}),N(this,Me).notify({mutation:this,type:"updated",action:t})})},Of);function ES(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ht,yt,si,Mf,bS=(Mf=class extends sl{constructor(t={}){super();Z(this,Ht);Z(this,yt);Z(this,si);this.config=t,B(this,Ht,new Set),B(this,yt,new Map),B(this,si,0)}build(t,n,r){const o=new SS({mutationCache:this,mutationId:++yi(this,si)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,Ht).add(t);const n=$i(t);if(typeof n=="string"){const r=N(this,yt).get(n);r?r.push(t):N(this,yt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,Ht).delete(t)){const n=$i(t);if(typeof n=="string"){const r=N(this,yt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,yt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=$i(t);if(typeof n=="string"){const r=N(this,yt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=$i(t);if(typeof n=="string"){const o=(r=N(this,yt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ie.batch(()=>{N(this,Ht).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,Ht).clear(),N(this,yt).clear()})}getAll(){return Array.from(N(this,Ht))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mf(n,r))}findAll(t={}){return this.getAll().filter(n=>mf(t,n))}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ie.batch(()=>Promise.all(t.map(n=>n.continue().catch(gt))))}},Ht=new WeakMap,yt=new WeakMap,si=new WeakMap,Mf);function $i(e){var t;return(t=e.options.scope)==null?void 0:t.id}function vf(e){return{onFetch:(t,n)=>{var c,f,h,d,C;const r=t.options,o=(h=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((d=t.state.data)==null?void 0:d.pages)||[],s=((C=t.state.data)==null?void 0:C.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let y=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=vg(t.options,t.fetchOptions),p=async(v,S,E)=>{if(y)return Promise.reject();if(S==null&&v.pages.length)return Promise.resolve(v);const k=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return w(F),F})(),R=await g(k),{maxPages:O}=t.options,_=E?dS:cS;return{pages:_(v.pages,R,O),pageParams:_(v.pageParams,S,O)}};if(o&&i.length){const v=o==="backward",S=v?kS:yf,E={pages:i,pageParams:s},b=S(r,E);l=await p(E,b,v)}else{const v=e??i.length;do{const S=a===0?s[0]??r.initialPageParam:yf(r,l);if(a>0&&S==null)break;l=await p(l,S),a++}while(a{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function yf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var de,yn,xn,Hr,Wr,wn,Qr,Kr,Lf,NS=(Lf=class{constructor(e={}){Z(this,de);Z(this,yn);Z(this,xn);Z(this,Hr);Z(this,Wr);Z(this,wn);Z(this,Qr);Z(this,Kr);B(this,de,e.queryCache||new CS),B(this,yn,e.mutationCache||new bS),B(this,xn,e.defaultOptions||{}),B(this,Hr,new Map),B(this,Wr,new Map),B(this,wn,0)}mount(){yi(this,wn)._++,N(this,wn)===1&&(B(this,Qr,yg.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onFocus())})),B(this,Kr,As.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onOnline())})))}unmount(){var e,t;yi(this,wn)._--,N(this,wn)===0&&((e=N(this,Qr))==null||e.call(this),B(this,Qr,void 0),(t=N(this,Kr))==null||t.call(this),B(this,Kr,void 0))}isFetching(e){return N(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,yn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(eu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=oS(t,i);if(s!==void 0)return N(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ie.batch(()=>N(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,de);Ie.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,de);return Ie.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ie.batch(()=>N(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return Ie.batch(()=>(N(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ie.batch(()=>N(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(gt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,de).build(this,t);return n.isStaleByTime(eu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gt).catch(gt)}fetchInfiniteQuery(e){return e.behavior=vf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=vf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return As.isOnline()?N(this,yn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,de)}getMutationCache(){return N(this,yn)}getDefaultOptions(){return N(this,xn)}setDefaultOptions(e){B(this,xn,e)}setQueryDefaults(e,t){N(this,Hr).set(ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Hr).values()],n={};return t.forEach(r=>{oi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,Wr).set(ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Wr).values()],n={};return t.forEach(r=>{oi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,xn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,xn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,de).clear(),N(this,yn).clear()}},de=new WeakMap,yn=new WeakMap,xn=new WeakMap,Hr=new WeakMap,Wr=new WeakMap,wn=new WeakMap,Qr=new WeakMap,Kr=new WeakMap,Lf),PS=x.createContext(void 0),TS=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(PS.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Eg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jS(){return Math.random().toString(36).substr(2,8)}function wf(e,t){return{usr:e.state,key:e.key,idx:t}}function nu(e,t,n,r){return n===void 0&&(n=null),_s({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?al(t):t,{state:n,key:t&&t.key||r||jS()})}function bg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function al(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function AS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=En.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(_s({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=En.Pop;let w=c(),g=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:g})}function h(w,g){l=En.Push;let p=nu(y.location,w,g);u=c()+1;let v=wf(p,u),S=y.createHref(p);try{s.pushState(v,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(S)}i&&a&&a({action:l,location:y.location,delta:1})}function d(w,g){l=En.Replace;let p=nu(y.location,w,g);u=c();let v=wf(p,u),S=y.createHref(p);s.replaceState(v,"",S),i&&a&&a({action:l,location:y.location,delta:0})}function C(w){let g=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof w=="string"?w:bg(w);return p=p.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let y={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(xf,f),a=w,()=>{o.removeEventListener(xf,f),a=null}},createHref(w){return t(o,w)},createURL:C,encodeLocation(w){let g=C(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:d,go(w){return s.go(w)}};return y}var Cf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Cf||(Cf={}));function _S(e,t,n){return n===void 0&&(n="/"),OS(e,t,n,!1)}function OS(e,t,n,r){let o=typeof t=="string"?al(t):t,i=Pg(o.pathname||"/",n);if(i==null)return null;let s=kg(e);MS(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(Qe(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Fr([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(Qe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),kg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:US(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of Ng(i.path))o(i,s,a)}),t}function Ng(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Ng(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function MS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:BS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const LS=/^:[\w-]+$/,IS=3,DS=2,zS=1,FS=10,$S=-2,Sf=e=>e==="*";function US(e,t){let n=e.split("/"),r=n.length;return n.some(Sf)&&(r+=$S),t&&(r+=DS),n.filter(o=>!Sf(o)).reduce((o,i)=>o+(LS.test(i)?IS:i===""?zS:FS),r)}function BS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function VS(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:h,isOptional:d}=c;if(h==="*"){let y=l[f]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const C=l[f];return d&&!C?u[h]=void 0:u[h]=(C||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function HS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Eg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function WS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Eg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Pg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Fr=e=>e.join("/").replace(/\/\/+/g,"/"),QS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function KS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Tg=["post","put","patch","delete"];new Set(Tg);const GS=["get",...Tg];new Set(GS);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},l,w.params),pathname:Fr([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Fr([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?x.createElement(ul.Provider,{value:{location:Os({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:En.Pop}},y):y}function JS(){let e=lE(),t=KS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const eE=x.createElement(JS,null);class tE extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(cl.Provider,{value:this.props.routeContext},x.createElement(jg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nE(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(YS);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(cl.Provider,{value:t},r)}function rE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||Qe(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,h)=>{let d,C=!1,y=null,w=null;n&&(d=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||eE,a&&(u<0&&h===0?(C=!0,w=null):u===h&&(C=!0,w=f.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,h+1)),p=()=>{let v;return d?v=y:C?v=w:f.route.Component?v=x.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=c,x.createElement(nE,{match:f,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(tE,{location:n.location,revalidation:n.revalidation,component:y,error:d,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var ru=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ru||{});function oE(e){let t=x.useContext(qS);return t||Qe(!1),t}function iE(e){let t=x.useContext(cl);return t||Qe(!1),t}function sE(e){let t=iE(),n=t.matches[t.matches.length-1];return n.route.id||Qe(!1),n.route.id}function lE(){var e;let t=x.useContext(jg),n=oE(ru.UseRouteError),r=sE(ru.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function aE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ou(e){Qe(!1)}function uE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=En.Pop,navigator:i,static:s=!1,future:l}=e;wc()&&Qe(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:i,static:s,future:Os({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=al(r));let{pathname:c="/",search:f="",hash:h="",state:d=null,key:C="default"}=r,y=x.useMemo(()=>{let w=Pg(c,a);return w==null?null:{location:{pathname:w,search:f,hash:h,state:d,key:C},navigationType:o}},[a,c,f,h,d,C,o]);return y==null?null:x.createElement(Rg.Provider,{value:u},x.createElement(ul.Provider,{children:n,value:y}))}function cE(e){let{children:t,location:n}=e;return XS(iu(t),n)}new Promise(()=>{});function iu(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let i=[...t,o];if(r.type===x.Fragment){n.push.apply(n,iu(r.props.children,i));return}r.type!==ou&&Qe(!1),!r.props.index||!r.props.children||Qe(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=iu(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const dE="6";try{window.__reactRouterVersion=dE}catch{}const fE="startTransition",bf=du[fE];function pE(e){let{basename:t,children:n,future:r,window:o}=e,i=x.useRef();i.current==null&&(i.current=RS({window:o,v5Compat:!0}));let s=i.current,[l,a]=x.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=x.useCallback(f=>{u&&bf?bf(()=>a(f)):a(f)},[a,u]);return x.useLayoutEffect(()=>s.listen(c),[s,c]),x.useEffect(()=>aE(r),[r]),x.createElement(uE,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var kf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(kf||(kf={}));var Nf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Nf||(Nf={}));const mE=sc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-gradient-primary text-primary-foreground shadow-glow hover:shadow-premium transform hover:scale-105 transition-all duration-300 font-bold",scientific:"bg-secondary text-secondary-foreground border border-primary/20 hover:bg-primary hover:text-primary-foreground hover:shadow-glow transition-all duration-300",cta:"bg-primary text-primary-foreground shadow-premium hover:bg-primary-dark hover:shadow-glow transform hover:scale-102 transition-all duration-300 font-semibold"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-16 rounded-xl px-12 text-lg font-bold",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ro=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?G0:"button";return m.jsx(s,{className:we(mE({variant:t,size:n,className:e})),ref:i,...o})});ro.displayName="Button";const _g="/assets/lapidare-logo-dXu9RjIN.png",hE=()=>m.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-md border-b border-border/50",children:m.jsxs("div",{className:"container mx-auto px-6 h-20 flex items-center justify-between",children:[m.jsx("div",{className:"flex items-center space-x-3",children:m.jsx("img",{src:_g,alt:"Lapidare Growth",className:"h-12 w-auto animate-float"})}),m.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[m.jsx("a",{href:"#metodo",className:"text-foreground hover:text-primary transition-colors font-medium",children:"Método"}),m.jsx("a",{href:"#atuacao",className:"text-foreground hover:text-primary transition-colors font-medium",children:"Atuação"}),m.jsx("a",{href:"#diagnostico",className:"text-foreground hover:text-primary transition-colors font-medium",children:"Diagnóstico"}),m.jsx("a",{href:"#sobre",className:"text-foreground hover:text-primary transition-colors font-medium",children:"Sobre"})]}),m.jsx(ro,{variant:"cta",size:"lg",children:"Quero meu diagnóstico"})]})}),gE=()=>m.jsxs("section",{className:"min-h-screen flex items-center justify-center bg-gradient-hero relative overflow-hidden",children:[m.jsx("div",{className:"absolute inset-0 grid-pattern opacity-20"}),m.jsx("div",{className:"absolute top-20 left-10 w-20 h-20 border border-primary/30 rotate-45 animate-float"}),m.jsx("div",{className:"absolute bottom-20 right-10 w-16 h-16 bg-primary/10 rounded-full pulse-orange"}),m.jsx("div",{className:"absolute top-1/3 right-1/4 w-12 h-12 border-2 border-primary-glow/40 animate-float",style:{animationDelay:"2s"}}),m.jsx("div",{className:"container mx-auto px-6 text-center relative z-10",children:m.jsxs("div",{className:"max-w-5xl mx-auto",children:[m.jsxs("div",{className:"inline-flex items-center gap-3 bg-surface/80 backdrop-blur-sm border border-primary/20 rounded-full px-8 py-4 mb-8 mt-24 ",children:[m.jsx(Ph,{className:"w-5 h-5 md:w-6 md:h-6 text-primary pulse-orange"}),m.jsx("span",{className:"text-sm md:text-base font-medium text-muted-foreground",children:"Método Científico Aplicado ao Crescimento"})]}),m.jsxs("h1",{className:"text-hero mb-6 text-slate-50",children:["Crescimento é",m.jsx("span",{className:"text-transparent bg-gradient-primary bg-clip-text block",children:"ciência."})]}),m.jsxs("p",{className:"text-subsection text-muted-foreground max-w-4xl mx-auto mb-12 leading-relaxed",children:["Na Lapidare Growth, aplicamos método científico para transformar marketing em",m.jsx("span",{className:"text-primary font-semibold",children:" faturamento previsível"}),". Cada ação é validada antes de ser escalada, garantindo que você invista apenas no que",m.jsx("span",{className:"text-primary font-semibold",children:" comprovadamente gera dinheiro"})," pra sua empresa."]}),m.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6",children:[m.jsxs(ro,{variant:"hero",size:"xl",className:"group",children:["Quero meu diagnóstico gratuito",m.jsx(lc,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]}),m.jsx(ro,{variant:"scientific",size:"lg",children:"Conhecer o método"})]}),m.jsxs("p",{className:"text-sm text-muted-foreground mt-8",children:[m.jsx("span",{className:"font-semibold text-primary",children:"+200%"})," de crescimento médio dos nossos clientes"]})]})})]}),Pf=[{icon:Xx,title:"Mapeamento de Mercado",description:"Analisamos concorrentes, setor e brechas de crescimento."},{icon:Hx,title:"Observação Estratégica",description:"Entendemos o comportamento real do cliente."},{icon:Kx,title:"Estratégias de Crescimento",description:"Criamos soluções práticas para gerar receita."},{icon:Wx,title:"Validação Controlada",description:"Cada ação é validada em escala reduzida antes de investir pesado."},{icon:Th,title:"Escala Previsível",description:"Expandimos apenas o que gera retorno comprovado."}],vE=()=>m.jsx("section",{id:"metodo",className:"py-24 bg-gradient-section",children:m.jsxs("div",{className:"container mx-auto px-6",children:[m.jsxs("div",{className:"text-center mb-16",children:[m.jsxs("h2",{className:"text-section text-foreground mb-6",children:["Nosso Método –"," ",m.jsx("span",{className:"text-transparent bg-gradient-primary bg-clip-text",children:"Método Científico de Crescimento Lapidare"})]}),m.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Não existe achismo. Só ciência aplicada ao crescimento do seu negócio."})]}),m.jsxs("div",{className:"relative max-w-6xl mx-auto",children:[m.jsx("div",{className:"hidden md:block absolute top-1/2 left-0 right-0 h-0.5 bg-gradient-to-r from-primary/20 via-primary to-primary/20 transform -translate-y-1/2"}),m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-8",children:Pf.map((e,t)=>m.jsxs("div",{className:"relative",children:[m.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 shadow-card hover:shadow-premium transition-all duration-300 hover:-translate-y-2 relative z-10",children:[m.jsx("div",{className:"absolute -top-4 left-6 bg-primary text-primary-foreground w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold",children:t+1}),m.jsx("div",{className:"mb-4 mt-2",children:m.jsx(e.icon,{className:"w-8 h-8 text-primary"})}),m.jsx("h3",{className:"text-lg font-bold text-card-foreground mb-3",children:e.title}),m.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]}),tm.jsx("section",{id:"atuacao",className:"py-24 bg-background",children:m.jsxs("div",{className:"container mx-auto px-6",children:[m.jsxs("div",{className:"text-center mb-16",children:[m.jsxs("h2",{className:"text-section text-foreground mb-6",children:["Frentes de"," ",m.jsx("span",{className:"text-transparent bg-gradient-primary bg-clip-text",children:"Atuação"})]}),m.jsx("p",{className:"text-xl text-muted-foreground max-w-4xl mx-auto",children:"Do primeiro anúncio até o fechamento da venda, eliminamos gargalos e criamos previsibilidade."})]}),m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 max-w-7xl mx-auto",children:yE.map((e,t)=>m.jsxs("div",{className:"group bg-card border border-border rounded-xl p-8 shadow-card hover:shadow-premium transition-all duration-300 hover:-translate-y-2 relative overflow-hidden",children:[m.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-primary/5 rounded-full transform translate-x-8 -translate-y-8 group-hover:scale-150 transition-transform duration-500"}),m.jsx("div",{className:"mb-6 relative z-10",children:m.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-xl flex items-center justify-center group-hover:bg-primary/20 transition-colors duration-300",children:m.jsx(e.icon,{className:"w-8 h-8 text-primary"})})}),m.jsx("h3",{className:"text-xl font-bold text-card-foreground mb-3 relative z-10",children:e.title}),m.jsx("p",{className:"text-muted-foreground leading-relaxed relative z-10",children:e.description})]},t))}),m.jsx("div",{className:"text-center mt-16",children:m.jsx("div",{className:"bg-surface border border-primary/20 rounded-2xl p-8 max-w-4xl mx-auto",children:m.jsxs("p",{className:"text-lg font-semibold text-foreground",children:["Do primeiro anúncio até o fechamento da venda, eliminamos gargalos e criamos"," ",m.jsx("span",{className:"text-primary",children:"previsibilidade"}),"."]})})})]})}),vr=x.forwardRef(({className:e,type:t,...n},r)=>m.jsx("input",{type:t,className:we("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));vr.displayName="Input";var wE="Label",Og=x.forwardRef((e,t)=>m.jsx(ve.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Og.displayName=wE;var Mg=Og;const CE=sc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),yr=x.forwardRef(({className:e,...t},n)=>m.jsx(Mg,{ref:n,className:we(CE(),e),...t}));yr.displayName=Mg.displayName;const Lg=x.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:we("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Lg.displayName="Card";const Ig=x.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:we("flex flex-col space-y-1.5 p-6",e),...t}));Ig.displayName="CardHeader";const Dg=x.forwardRef(({className:e,...t},n)=>m.jsx("h3",{ref:n,className:we("text-2xl font-semibold leading-none tracking-tight",e),...t}));Dg.displayName="CardTitle";const SE=x.forwardRef(({className:e,...t},n)=>m.jsx("p",{ref:n,className:we("text-sm text-muted-foreground",e),...t}));SE.displayName="CardDescription";const zg=x.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:we("p-6 pt-0",e),...t}));zg.displayName="CardContent";const EE=x.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:we("flex items-center p-6 pt-0",e),...t}));EE.displayName="CardFooter";const bE=()=>m.jsx("section",{id:"diagnostico",className:"py-24 bg-gradient-section",children:m.jsxs("div",{className:"container mx-auto px-6",children:[m.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-16",children:[m.jsxs("h2",{className:"text-section text-foreground mb-6",children:["Sua empresa pode"," ",m.jsx("span",{className:"text-transparent bg-gradient-primary bg-clip-text",children:"dobrar faturamento"})," ","em 90 dias?"]}),m.jsx("p",{className:"text-xl text-muted-foreground",children:"Descubra em um diagnóstico gratuito como desbloquear crescimento previsível no seu negócio."})]}),m.jsx("div",{className:"max-w-2xl mx-auto",children:m.jsxs(Lg,{className:"shadow-premium border-primary/20",children:[m.jsxs(Ig,{className:"text-center pb-8",children:[m.jsx(Dg,{className:"text-2xl font-bold text-card-foreground",children:"Diagnóstico Gratuito"}),m.jsxs("div",{className:"flex items-center justify-center gap-6 text-sm text-muted-foreground mt-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Vx,{className:"w-4 h-4 text-primary"}),"30 minutos"]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Jx,{className:"w-4 h-4 text-primary"}),"Vagas limitadas"]})]})]}),m.jsxs(zg,{className:"space-y-6",children:[m.jsxs("form",{className:"space-y-4",children:[m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(yr,{htmlFor:"name",children:"Nome completo"}),m.jsx(vr,{id:"name",placeholder:"Seu nome"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(yr,{htmlFor:"company",children:"Empresa"}),m.jsx(vr,{id:"company",placeholder:"Nome da empresa"})]})]}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(yr,{htmlFor:"role",children:"Cargo"}),m.jsx(vr,{id:"role",placeholder:"Seu cargo"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(yr,{htmlFor:"whatsapp",children:"WhatsApp"}),m.jsx(vr,{id:"whatsapp",placeholder:"(11) 99999-9999"})]})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(yr,{htmlFor:"email",children:"Email"}),m.jsx(vr,{id:"email",type:"email",placeholder:"seu@email.com"})]}),m.jsxs(ro,{variant:"hero",size:"xl",className:"w-full group mt-8",children:["Agendar diagnóstico gratuito",m.jsx(lc,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})]}),m.jsx("div",{className:"text-center pt-4",children:m.jsxs("p",{className:"text-sm text-muted-foreground",children:[m.jsx("span",{className:"font-semibold text-primary",children:"Atenção:"})," Vagas limitadas por mês."]})})]})]})}),m.jsx("div",{className:"text-center mt-16",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:[m.jsxs("div",{className:"bg-card border border-border rounded-xl p-6",children:[m.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"+200%"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Crescimento médio"})]}),m.jsxs("div",{className:"bg-card border border-border rounded-xl p-6",children:[m.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"90 dias"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Para primeiros resultados"})]}),m.jsxs("div",{className:"bg-card border border-border rounded-xl p-6",children:[m.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"100%"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Método científico"})]})]})})]})});var dl="Collapsible",[kE,Fg]=lo(dl),[NE,Cc]=kE(dl),$g=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:s,...l}=e,[a,u]=Zs({prop:r,defaultProp:o??!1,onChange:s,caller:dl});return m.jsx(NE,{scope:n,disabled:i,contentId:Fh(),open:a,onOpenToggle:x.useCallback(()=>u(c=>!c),[u]),children:m.jsx(ve.div,{"data-state":Ec(a),"data-disabled":i?"":void 0,...l,ref:t})})});$g.displayName=dl;var Ug="CollapsibleTrigger",Bg=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Cc(Ug,n);return m.jsx(ve.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ec(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:me(e.onClick,o.onOpenToggle)})});Bg.displayName=Ug;var Sc="CollapsibleContent",Vg=x.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Cc(Sc,e.__scopeCollapsible);return m.jsx(Xs,{present:n||o.open,children:({present:i})=>m.jsx(PE,{...r,ref:t,present:i})})});Vg.displayName=Sc;var PE=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,s=Cc(Sc,n),[l,a]=x.useState(r),u=x.useRef(null),c=Je(t,u),f=x.useRef(0),h=f.current,d=x.useRef(0),C=d.current,y=s.open||l,w=x.useRef(y),g=x.useRef(void 0);return x.useEffect(()=>{const p=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(p)},[]),Dt(()=>{const p=u.current;if(p){g.current=g.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const v=p.getBoundingClientRect();f.current=v.height,d.current=v.width,w.current||(p.style.transitionDuration=g.current.transitionDuration,p.style.animationName=g.current.animationName),a(r)}},[s.open,r]),m.jsx(ve.div,{"data-state":Ec(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!y,...i,ref:c,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...e.style},children:y&&o})});function Ec(e){return e?"open":"closed"}var TE=$g,RE=Bg,jE=Vg,AE=x.createContext(void 0);function _E(e){const t=x.useContext(AE);return e||t||"ltr"}var Nt="Accordion",OE=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bc,ME,LE]=Jm(Nt),[fl,ab]=lo(Nt,[LE,Fg]),kc=Fg(),Hg=j.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return m.jsx(bc.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?m.jsx(FE,{...i,ref:t}):m.jsx(zE,{...o,ref:t})})});Hg.displayName=Nt;var[Wg,IE]=fl(Nt),[Qg,DE]=fl(Nt,{collapsible:!1}),zE=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[l,a]=Zs({prop:n,defaultProp:r??"",onChange:o,caller:Nt});return m.jsx(Wg,{scope:e.__scopeAccordion,value:j.useMemo(()=>l?[l]:[],[l]),onItemOpen:a,onItemClose:j.useCallback(()=>i&&a(""),[i,a]),children:m.jsx(Qg,{scope:e.__scopeAccordion,collapsible:i,children:m.jsx(Kg,{...s,ref:t})})})}),FE=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s,l]=Zs({prop:n,defaultProp:r??[],onChange:o,caller:Nt}),a=j.useCallback(c=>l((f=[])=>[...f,c]),[l]),u=j.useCallback(c=>l((f=[])=>f.filter(h=>h!==c)),[l]);return m.jsx(Wg,{scope:e.__scopeAccordion,value:s,onItemOpen:a,onItemClose:u,children:m.jsx(Qg,{scope:e.__scopeAccordion,collapsible:!0,children:m.jsx(Kg,{...i,ref:t})})})}),[$E,pl]=fl(Nt),Kg=j.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...s}=e,l=j.useRef(null),a=Je(l,t),u=ME(n),f=_E(o)==="ltr",h=me(e.onKeyDown,d=>{var R;if(!OE.includes(d.key))return;const C=d.target,y=u().filter(O=>{var _;return!((_=O.ref.current)!=null&&_.disabled)}),w=y.findIndex(O=>O.ref.current===C),g=y.length;if(w===-1)return;d.preventDefault();let p=w;const v=0,S=g-1,E=()=>{p=w+1,p>S&&(p=v)},b=()=>{p=w-1,p{const{__scopeAccordion:n,value:r,...o}=e,i=pl(Ms,n),s=IE(Ms,n),l=kc(n),a=Fh(),u=r&&s.value.includes(r)||!1,c=i.disabled||e.disabled;return m.jsx(UE,{scope:n,open:u,disabled:c,triggerId:a,children:m.jsx(TE,{"data-orientation":i.orientation,"data-state":ev(u),...l,...o,ref:t,disabled:c,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});Gg.displayName=Ms;var Yg="AccordionHeader",qg=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=pl(Nt,n),i=Nc(Yg,n);return m.jsx(ve.h3,{"data-orientation":o.orientation,"data-state":ev(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});qg.displayName=Yg;var su="AccordionTrigger",Xg=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=pl(Nt,n),i=Nc(su,n),s=DE(su,n),l=kc(n);return m.jsx(bc.ItemSlot,{scope:n,children:m.jsx(RE,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...r,ref:t})})});Xg.displayName=su;var Zg="AccordionContent",Jg=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=pl(Nt,n),i=Nc(Zg,n),s=kc(n);return m.jsx(jE,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Jg.displayName=Zg;function ev(e){return e?"open":"closed"}var BE=Hg,VE=Gg,HE=qg,tv=Xg,nv=Jg;const WE=BE,rv=x.forwardRef(({className:e,...t},n)=>m.jsx(VE,{ref:n,className:we("border-b",e),...t}));rv.displayName="AccordionItem";const ov=x.forwardRef(({className:e,children:t,...n},r)=>m.jsx(HE,{className:"flex",children:m.jsxs(tv,{ref:r,className:we("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,m.jsx(Bx,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));ov.displayName=tv.displayName;const iv=x.forwardRef(({className:e,children:t,...n},r)=>m.jsx(nv,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:m.jsx("div",{className:we("pb-4 pt-0",e),children:t})}));iv.displayName=nv.displayName;const QE=[{question:"E se não der resultado?",answer:"Nosso método é baseado em ciência e validação. Cada estratégia é testada em escala reduzida antes de ser implementada completamente. Trabalhamos apenas com ações comprovadamente eficazes, eliminando o risco de investimentos sem retorno."},{question:"Minha empresa é diferente, funciona?",answer:"Nosso método científico se adapta a qualquer mercado e segmento. Começamos sempre com um mapeamento profundo do seu setor específico, identificando as particularidades do seu público e concorrência antes de criar estratégias personalizadas."},{question:"Já tentei agência e não deu certo...",answer:"Não somos uma agência tradicional de likes e métricas de vaidade. Somos growth partners obcecados por resultados reais - faturamento, conversões e crescimento sustentável. Nossa abordagem é 100% orientada por dados e ROI comprovado."}],KE=()=>m.jsx("section",{className:"py-24 bg-background",children:m.jsx("div",{className:"container mx-auto px-6",children:m.jsxs("div",{className:"max-w-4xl mx-auto",children:[m.jsxs("div",{className:"text-center mb-16",children:[m.jsxs("h2",{className:"text-section text-foreground mb-6",children:["Quebra de"," ",m.jsx("span",{className:"text-transparent bg-gradient-primary bg-clip-text",children:"Objeções"})]}),m.jsx("p",{className:"text-xl text-muted-foreground",children:"As principais dúvidas sobre nosso método científico"})]}),m.jsx(WE,{type:"single",collapsible:!0,className:"space-y-4",children:QE.map((e,t)=>m.jsxs(rv,{value:`item-${t}`,className:"bg-card border border-border rounded-xl px-6 shadow-card hover:shadow-premium transition-all duration-300",children:[m.jsx(ov,{className:"text-left text-lg font-semibold text-card-foreground hover:text-primary transition-colors py-6",children:e.question}),m.jsx(iv,{className:"text-muted-foreground leading-relaxed pb-6",children:e.answer})]},t))}),m.jsx("div",{className:"text-center mt-16",children:m.jsx("div",{className:"bg-surface border border-primary/20 rounded-2xl p-8",children:m.jsxs("p",{className:"text-lg font-semibold text-foreground",children:["Nosso compromisso é com"," ",m.jsx("span",{className:"text-primary",children:"resultados mensuráveis"}),","," ","não promessas vazias."]})})})]})})}),GE=[{icon:t1,title:"Velocidade",description:"Implementação rápida e resultados ágeis"},{icon:Gx,title:"Aprendizado Contínuo",description:"Sempre testando e otimizando"},{icon:Zx,title:"Ciência Aplicada",description:"Método científico em cada decisão"},{icon:Th,title:"Foco no Lucro",description:"Obsessão por ROI e crescimento real"}],YE=()=>m.jsx("section",{id:"sobre",className:"py-24 bg-gradient-section",children:m.jsx("div",{className:"container mx-auto px-6",children:m.jsxs("div",{className:"max-w-6xl mx-auto",children:[m.jsxs("div",{className:"text-center mb-20",children:[m.jsxs("h2",{className:"text-section text-foreground mb-8",children:["Sobre a"," ",m.jsx("span",{className:"text-transparent bg-gradient-primary bg-clip-text",children:"Lapidare"})]}),m.jsxs("div",{className:"bg-card border border-primary/20 rounded-2xl p-12 shadow-premium max-w-4xl mx-auto",children:[m.jsxs("blockquote",{className:"text-2xl md:text-3xl font-bold text-foreground leading-relaxed",children:['"Não somos agência. Somos'," ",m.jsx("span",{className:"text-primary",children:"growth partners"})," ",'obcecados por resultados."']}),m.jsx("p",{className:"text-lg text-muted-foreground mt-6 leading-relaxed",children:"Na Lapidare Growth, cada estratégia nasce da observação científica e é validada antes de ser escalada. Transformamos marketing de arte em ciência, eliminando achismos e criando crescimento sustentável e previsível."})]})]}),m.jsxs("div",{children:[m.jsx("h3",{className:"text-2xl font-bold text-center text-foreground mb-12",children:"Nossos Valores"}),m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:GE.map((e,t)=>m.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 text-center shadow-card hover:shadow-premium transition-all duration-300 hover:-translate-y-2",children:[m.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-xl flex items-center justify-center mx-auto mb-4",children:m.jsx(e.icon,{className:"w-8 h-8 text-primary"})}),m.jsx("h4",{className:"text-lg font-bold text-card-foreground mb-2",children:e.title}),m.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]},t))})]}),m.jsx("div",{className:"text-center mt-20",children:m.jsxs("div",{className:"bg-surface border border-primary/20 rounded-2xl p-8 max-w-4xl mx-auto",children:[m.jsx("h3",{className:"text-xl font-bold text-foreground mb-4",children:"Abordagem Científica"}),m.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Aplicamos o método científico ao crescimento empresarial: observamos, criamos hipóteses, testamos em escala controlada, analisamos dados e escalamos apenas o que comprovadamente funciona. Resultado: crescimento previsível e sustentável."})]})})]})})}),qE=()=>m.jsxs("section",{className:"py-24 bg-gradient-hero relative overflow-hidden",children:[m.jsx("div",{className:"absolute inset-0 grid-pattern opacity-20"}),m.jsx("div",{className:"absolute top-10 left-10 w-20 h-20 border border-primary/30 rotate-45 animate-float"}),m.jsx("div",{className:"absolute bottom-10 right-10 w-16 h-16 bg-primary/10 rounded-full pulse-orange"}),m.jsx("div",{className:"container mx-auto px-6 text-center relative z-10",children:m.jsxs("div",{className:"max-w-4xl mx-auto",children:[m.jsxs("div",{className:"inline-flex items-center gap-2 bg-surface/80 backdrop-blur-sm border border-primary/20 rounded-full px-6 py-3 mb-8",children:[m.jsx(Ph,{className:"w-5 h-5 text-primary pulse-orange"}),m.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Crescimento Baseado em Ciência"})]}),m.jsxs("h2",{className:"text-section md:text-6xl mb-6 text-slate-50",children:["Crescimento não é sorte,"," ",m.jsx("span",{className:"text-transparent bg-gradient-primary bg-clip-text",children:"é ciência."})]}),m.jsxs("p",{className:"text-xl text-muted-foreground mb-12 leading-relaxed",children:["Agende seu diagnóstico gratuito e descubra como transformar marketing em"," ",m.jsx("span",{className:"text-primary font-semibold",children:"faturamento previsível"}),"."]}),m.jsxs(ro,{variant:"hero",size:"xl",className:"group shadow-glow",children:["Agendar diagnóstico gratuito",m.jsx(lc,{className:"w-6 h-6 group-hover:translate-x-1 transition-transform"})]}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mt-16 max-w-3xl mx-auto",children:[m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"text-2xl font-bold text-primary mb-2",children:"Método"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"100% Científico"})]}),m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"text-2xl font-bold text-primary mb-2",children:"Resultados"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Comprovados"})]}),m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"text-2xl font-bold text-primary mb-2",children:"Crescimento"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Previsível"})]})]})]})})]}),XE=()=>m.jsx("footer",{className:"bg-secondary text-secondary-foreground py-16",children:m.jsx("div",{className:"container mx-auto px-6",children:m.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[m.jsx("img",{src:_g,alt:"Lapidare Growth",className:"h-16 w-auto mx-auto mb-8"}),m.jsxs("div",{className:"space-y-4 mb-8",children:[m.jsx("h3",{className:"text-xl font-bold",children:"Lapidare Growth"}),m.jsx("p",{className:"text-secondary-foreground/80 max-w-2xl mx-auto",children:"Aplicamos método científico para transformar marketing em faturamento previsível. Crescimento baseado em ciência, não em achismos."})]}),m.jsxs("nav",{className:"flex flex-wrap justify-center gap-8 mb-8",children:[m.jsx("a",{href:"#metodo",className:"text-secondary-foreground/80 hover:text-primary transition-colors",children:"Método"}),m.jsx("a",{href:"#atuacao",className:"text-secondary-foreground/80 hover:text-primary transition-colors",children:"Atuação"}),m.jsx("a",{href:"#diagnostico",className:"text-secondary-foreground/80 hover:text-primary transition-colors",children:"Diagnóstico"}),m.jsx("a",{href:"#sobre",className:"text-secondary-foreground/80 hover:text-primary transition-colors",children:"Sobre"})]}),m.jsx("div",{className:"border-t border-secondary-foreground/20 pt-8",children:m.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4",children:[m.jsx("p",{className:"text-sm text-secondary-foreground/60",children:"© 2024 Lapidare Growth. Todos os direitos reservados."}),m.jsx("p",{className:"text-sm text-secondary-foreground/60",children:"Crescimento é ciência."})]})})]})})}),ZE=()=>m.jsxs("div",{className:"min-h-screen",children:[m.jsx(hE,{}),m.jsx(gE,{}),m.jsx(vE,{}),m.jsx(xE,{}),m.jsx(bE,{}),m.jsx(KE,{}),m.jsx(YE,{}),m.jsx(qE,{}),m.jsx(XE,{})]}),JE=()=>{const e=Ag();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:m.jsxs("div",{className:"text-center",children:[m.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),m.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),m.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},eb=new NS,tb=()=>m.jsx(TS,{client:eb,children:m.jsxs(nS,{children:[m.jsx(D1,{}),m.jsx(hw,{}),m.jsx(pE,{children:m.jsxs(cE,{children:[m.jsx(ou,{path:"/",element:m.jsx(ZE,{})}),m.jsx(ou,{path:"*",element:m.jsx(JE,{})})]})})]})});qm(document.getElementById("root")).render(m.jsx(tb,{}));